summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSiana Gearz <siana.gearz@googlemail.com>2011-04-17 11:25:00 -0400
committerSiana Gearz <siana.gearz@googlemail.com>2011-04-17 11:25:00 -0400
commit4438a5ebb2faebc2a3a9de82668d14f870f50d84 (patch)
treedfdf3c4124d7fbe9a398d1e82b2eb8e8ea6734f9 /indra
parentfb4743300ccfeadfb6601e39c808c4f3b90c1150 (diff)
STORM-1088: corrected fix loading of winmm.dll
Diffstat (limited to 'indra')
-rw-r--r--indra/media_plugins/winmmshim/winmm_shim.cpp11
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);
}