[SDK] Improve definition of (RTL_)CRITICAL_SECTION_DEBUG

This commit is contained in:
Timo Kreuzer 2024-12-13 17:03:29 +02:00
parent a444572c3e
commit c7eba0c5c7
5 changed files with 40 additions and 14 deletions

View file

@ -1423,9 +1423,25 @@ typedef struct _RTL_CRITICAL_SECTION_DEBUG
LIST_ENTRY ProcessLocksList;
ULONG EntryCount;
ULONG ContentionCount;
ULONG Spare[2];
union
{
ULONG_PTR WineDebugString;
ULONG_PTR Spare[1];
struct
{
ULONG Flags;
USHORT CreatorBackTraceIndexHigh;
USHORT SpareWORD;
};
};
} RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG;
#ifdef _WIN64
C_ASSERT(sizeof(RTL_CRITICAL_SECTION_DEBUG) == 0x30);
#else
C_ASSERT(sizeof(RTL_CRITICAL_SECTION_DEBUG) == 0x20);
#endif
typedef struct _RTL_CRITICAL_SECTION
{
PRTL_CRITICAL_SECTION_DEBUG DebugInfo;