taskmgr: Add DebugInfo to critical sections.
Jan Zerebecki
jan.wine at zerebecki.de
Tue Mar 27 02:29:26 CDT 2007
---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.
programs/taskmgr/perfdata.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/taskmgr/perfdata.c b/programs/taskmgr/perfdata.c
index 85001b3..f41d188 100644
--- a/programs/taskmgr/perfdata.c
+++ b/programs/taskmgr/perfdata.c
@@ -61,6 +61,7 @@ BOOL PerfDataInitialize(void)
pGetProcessIoCounters = (PROCGPIC)GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "GetProcessIoCounters");
InitializeCriticalSection(&PerfDataCriticalSection);
+ PerfDataCriticalSection.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PerfDataCriticalSection");
if (!NtQuerySystemInformation)
return FALSE;
@@ -79,6 +80,7 @@ void PerfDataUninitialize(void)
{
NtQuerySystemInformation = NULL;
+ PerfDataCriticalSection.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&PerfDataCriticalSection);
}
More information about the wine-patches
mailing list