mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
- Fix a heap corruption at process shutdown
- Found by irc:encoded svn path=/trunk/; revision=43791
This commit is contained in:
parent
145fbbd116
commit
d42f65b7f8
1 changed files with 2 additions and 7 deletions
|
@ -65,13 +65,7 @@ HINSTANCE hWinMM32Instance;
|
|||
HANDLE psLastEvent;
|
||||
HANDLE psStopEvent;
|
||||
|
||||
static CRITICAL_SECTION_DEBUG critsect_debug =
|
||||
{
|
||||
0, 0, &WINMM_cs,
|
||||
{ &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
|
||||
0, 0, { (DWORD_PTR)(__FILE__ ": WINMM_cs") }
|
||||
};
|
||||
CRITICAL_SECTION WINMM_cs = { &critsect_debug, -1, 0, 0, 0, 0 };
|
||||
CRITICAL_SECTION WINMM_cs;
|
||||
|
||||
/**************************************************************************
|
||||
* WINMM_CreateIData [internal]
|
||||
|
@ -81,6 +75,7 @@ static BOOL WINMM_CreateIData(HINSTANCE hInstDLL)
|
|||
hWinMM32Instance = hInstDLL;
|
||||
psStopEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||
psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||
InitializeCriticalSection(&WINMM_cs);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue