wintab32: Add DebugInfo to critical sections.

This commit is contained in:
Jan Zerebecki 2007-03-10 22:11:09 +01:00 committed by Alexandre Julliard
parent e293d630ff
commit 1e0901179a
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
TRACE("Initialization\n"); TRACE("Initialization\n");
InitializeCriticalSection(&csTablet); InitializeCriticalSection(&csTablet);
csTablet.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": csTablet");
hx11drv = GetModuleHandleA("winex11.drv"); hx11drv = GetModuleHandleA("winex11.drv");
if (hx11drv) if (hx11drv)
{ {
@ -96,6 +97,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
hwndDefault = 0; hwndDefault = 0;
} }
TABLET_Unregister(); TABLET_Unregister();
csTablet.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&csTablet); DeleteCriticalSection(&csTablet);
break; break;
} }