Skip to content
Snippets Groups Projects
Commit d1ba34a8 authored by Siana Gearz's avatar Siana Gearz
Browse files

STORM-1088: corrected fix loading of winmm.dll

parent 26b15973
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ BOOL APIENTRY DllMain( HMODULE hModule, ...@@ -39,7 +39,7 @@ BOOL APIENTRY DllMain( HMODULE hModule,
LPVOID lpReserved LPVOID lpReserved
) )
{ {
InitializeCriticalSectionAndSpinCount(&sCriticalSection, 0x00000400); InitializeCriticalSection(&sCriticalSection);
return TRUE; return TRUE;
} }
...@@ -62,11 +62,12 @@ void ll_winmm_shim_initialize(){ ...@@ -62,11 +62,12 @@ void ll_winmm_shim_initialize(){
initialized = true; initialized = true;
init_function_pointers(winmm_handle); init_function_pointers(winmm_handle);
::OutputDebugStringA("WINMM_SHIM.DLL: real winmm.dll initialized successfully\n"); ::OutputDebugStringA("WINMM_SHIM.DLL: real winmm.dll initialized successfully\n");
return;
} }
else
// failed to initialize real winmm.dll {
::OutputDebugStringA("WINMM_SHIM.DLL: Failed to initialize real winmm.dll\n"); // failed to initialize real winmm.dll
::OutputDebugStringA("WINMM_SHIM.DLL: Failed to initialize real winmm.dll\n");
}
} }
LeaveCriticalSection(&sCriticalSection); LeaveCriticalSection(&sCriticalSection);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment