Commit ca350ad2 authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

winmm: Add DebugInfo to critical sections.

parent a771bce3
...@@ -76,7 +76,7 @@ static BOOL WINMM_CreateIData(HINSTANCE hInstDLL) ...@@ -76,7 +76,7 @@ static BOOL WINMM_CreateIData(HINSTANCE hInstDLL)
WINMM_IData.hWinMM32Instance = hInstDLL; WINMM_IData.hWinMM32Instance = hInstDLL;
InitializeCriticalSection(&WINMM_IData.cs); 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.psStopEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
WINMM_IData.psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL); WINMM_IData.psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
TRACE("Initialized IData (%p)\n", &WINMM_IData); TRACE("Initialized IData (%p)\n", &WINMM_IData);
...@@ -94,6 +94,7 @@ static void WINMM_DeleteIData(void) ...@@ -94,6 +94,7 @@ static void WINMM_DeleteIData(void)
* inside WINMM_IData */ * inside WINMM_IData */
CloseHandle(WINMM_IData.psStopEvent); CloseHandle(WINMM_IData.psStopEvent);
CloseHandle(WINMM_IData.psLastEvent); CloseHandle(WINMM_IData.psLastEvent);
WINMM_IData.cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&WINMM_IData.cs); DeleteCriticalSection(&WINMM_IData.cs);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment