mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 23:20:56 +00:00
winmm: Return meaningful value in WINMM_CreateIData.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6ffe08459f
commit
a6f43ecf9b
@ -79,7 +79,7 @@ static BOOL WINMM_CreateIData(HINSTANCE hInstDLL)
|
||||
{
|
||||
hWinMM32Instance = hInstDLL;
|
||||
psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||
return TRUE;
|
||||
return psLastEvent != NULL;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
@ -137,9 +137,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hInstDLL);
|
||||
|
||||
if (!WINMM_CreateIData(hInstDLL))
|
||||
return FALSE;
|
||||
break;
|
||||
if (!WINMM_CreateIData(hInstDLL))
|
||||
return FALSE;
|
||||
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if(fImpLoad)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user