Commit a6f43ecf authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

winmm: Return meaningful value in WINMM_CreateIData.

parent 6ffe0845
......@@ -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;
......
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