Jan Zerebecki : winmm: Add DebugInfo to critical sections.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:54 CDT 2007
Module: wine
Branch: master
Commit: ca350ad2b1c2aba1d7a4ece5bf226d7ad56c5bf6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca350ad2b1c2aba1d7a4ece5bf226d7ad56c5bf6
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Sat Mar 10 22:11:59 2007 +0100
winmm: Add DebugInfo to critical sections.
---
dlls/winmm/winmm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c
index 7499f60..7613277 100644
--- a/dlls/winmm/winmm.c
+++ b/dlls/winmm/winmm.c
@@ -76,7 +76,7 @@ static BOOL WINMM_CreateIData(HINSTANCE hInstDLL)
WINMM_IData.hWinMM32Instance = hInstDLL;
InitializeCriticalSection(&WINMM_IData.cs);
- WINMM_IData.cs.DebugInfo->Spare[0] = (DWORD_PTR)"WINMM_IData";
+ WINMM_IData.cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": WINE_MM_IDATA.cs");
WINMM_IData.psStopEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
WINMM_IData.psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
TRACE("Initialized IData (%p)\n", &WINMM_IData);
@@ -94,6 +94,7 @@ static void WINMM_DeleteIData(void)
* inside WINMM_IData */
CloseHandle(WINMM_IData.psStopEvent);
CloseHandle(WINMM_IData.psLastEvent);
+ WINMM_IData.cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&WINMM_IData.cs);
}
More information about the wine-cvs
mailing list