Allocate DebugInfo field for all critical sections (based on a patch
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
diff --git a/objects/gdiobj.c b/objects/gdiobj.c
index 28ecdfd..f7bbe80 100644
--- a/objects/gdiobj.c
+++ b/objects/gdiobj.c
@@ -66,7 +66,15 @@
static HGDIOBJ stock_objects[NB_STOCK_OBJECTS];
-static SYSLEVEL GDI_level = { CRITICAL_SECTION_INIT("GDI_level"), 3 };
+static SYSLEVEL GDI_level;
+static CRITICAL_SECTION_DEBUG critsect_debug =
+{
+ 0, 0, &GDI_level.crst,
+ { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
+ 0, 0, { 0, (DWORD)(__FILE__ ": GDI_level") }
+};
+static SYSLEVEL GDI_level = { { &critsect_debug, -1, 0, 0, 0, 0 }, 3 };
+
static WORD GDI_HeapSel;
inline static BOOL get_bool(char *buffer)