mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Fix size returned by os_critsecsize() and construct type for D_CRITIAL_SECTION on Windows.
This commit is contained in:
@@ -44,11 +44,11 @@
|
||||
int os_critsecsize()
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
// TODO Check size
|
||||
return 68;
|
||||
// Return sizeof(RTL_CRITICAL_SECTION)
|
||||
return global.params.is64bit ? 40 : 24;
|
||||
#else
|
||||
if (global.params.os == OSWindows)
|
||||
return 68;
|
||||
return global.params.is64bit ? 40 : 24;
|
||||
else if (global.params.os == OSFreeBSD)
|
||||
return sizeof(size_t);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user