wintab32: Add DebugInfo to critical sections.
Jan Zerebecki
jan.wine at zerebecki.de
Sat Mar 10 15:11:09 CST 2007
---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.
dlls/wintab32/wintab32.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wintab32/wintab32.c b/dlls/wintab32/wintab32.c
index f621f8e..c34a681 100644
--- a/dlls/wintab32/wintab32.c
+++ b/dlls/wintab32/wintab32.c
@@ -74,6 +74,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
case DLL_PROCESS_ATTACH:
TRACE("Initialization\n");
InitializeCriticalSection(&csTablet);
+ csTablet.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": csTablet");
hx11drv = GetModuleHandleA("winex11.drv");
if (hx11drv)
{
@@ -96,6 +97,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
hwndDefault = 0;
}
TABLET_Unregister();
+ csTablet.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&csTablet);
break;
}
More information about the wine-patches
mailing list