- Implementation of gdi printing support. Work in progress. Losts of updates, includi...
[reactos.git] / reactos / dll / win32 / gdi32 / main / dllmain.c
index 2e676ac..5dedf6e 100644 (file)
@@ -14,6 +14,7 @@ BOOL SetStockObjects = FALSE;
 PDEVCAPS GdiDevCaps = NULL;
 PGDIHANDLECACHE GdiHandleCache = NULL;
 BOOL gbLpk = FALSE;
+RTL_CRITICAL_SECTION semLocal;
 
 /*
  * GDI32.DLL does have an entry point for disable threadlibrarycall,. The initialization is done by a call
@@ -52,6 +53,7 @@ GdiProcessSetup (VOID)
     CurrentProcessId = NtCurrentTeb()->ClientId.UniqueProcess;
     GDI_BatchLimit = (DWORD) NtCurrentTeb()->ProcessEnvironmentBlock->GdiDCAttributeList;
     GdiHandleCache = (PGDIHANDLECACHE)NtCurrentTeb()->ProcessEnvironmentBlock->GdiHandleBuffer;
+    RtlInitializeCriticalSection(&semLocal);
 }