diff options
author | Siana Gearz <siana.gearz@googlemail.com> | 2011-04-17 11:25:00 -0400 |
---|---|---|
committer | Siana Gearz <siana.gearz@googlemail.com> | 2011-04-17 11:25:00 -0400 |
commit | da8f6c675e9a58d4b808aa0ba2917e767106d7a0 (patch) | |
tree | 22bd44555c01c3e9dd00d0d5380aa11daf84e770 /indra/media_plugins | |
parent | 796a94fc6e8162e4e809bb0c0eff97596ef4904d (diff) |
STORM-1088: corrected fix loading of winmm.dll
Diffstat (limited to 'indra/media_plugins')
-rw-r--r-- | indra/media_plugins/winmmshim/winmm_shim.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/media_plugins/winmmshim/winmm_shim.cpp b/indra/media_plugins/winmmshim/winmm_shim.cpp index 6ba95e565e..47a1e5c018 100644 --- a/indra/media_plugins/winmmshim/winmm_shim.cpp +++ b/indra/media_plugins/winmmshim/winmm_shim.cpp @@ -39,7 +39,7 @@ BOOL APIENTRY DllMain( HMODULE hModule, LPVOID lpReserved ) { - InitializeCriticalSectionAndSpinCount(&sCriticalSection, 0x00000400); + InitializeCriticalSection(&sCriticalSection); return TRUE; } @@ -62,11 +62,12 @@ void ll_winmm_shim_initialize(){ initialized = true; init_function_pointers(winmm_handle); ::OutputDebugStringA("WINMM_SHIM.DLL: real winmm.dll initialized successfully\n"); - return; } - - // failed to initialize real winmm.dll - ::OutputDebugStringA("WINMM_SHIM.DLL: Failed to initialize real winmm.dll\n"); + else + { + // failed to initialize real winmm.dll + ::OutputDebugStringA("WINMM_SHIM.DLL: Failed to initialize real winmm.dll\n"); + } } LeaveCriticalSection(&sCriticalSection); } |