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:
Bruno Jesus 2016-12-01 11:32:34 -02:00 committed by Alexandre Julliard
parent 6ffe08459f
commit a6f43ecf9b

View File

@ -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;