diff options
author | Richard Linden <none@none> | 2013-11-02 21:36:28 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-11-02 21:36:28 -0700 |
commit | 8c4825c3821c490698806f2b4771800cdb5d6956 (patch) | |
tree | 8b8eeebfc86e7b20249551ae2c90b7c60a5ac8d4 | |
parent | 46c3bf7575a0366c20388d19815a5ee8e01cc0c6 (diff) |
initialize critical section once
-rwxr-xr-x | indra/media_plugins/winmmshim/winmm_shim.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/media_plugins/winmmshim/winmm_shim.cpp b/indra/media_plugins/winmmshim/winmm_shim.cpp index aac349bf57..6297189869 100755 --- a/indra/media_plugins/winmmshim/winmm_shim.cpp +++ b/indra/media_plugins/winmmshim/winmm_shim.cpp @@ -39,7 +39,10 @@ BOOL APIENTRY DllMain( HMODULE hModule, LPVOID lpReserved ) { - InitializeCriticalSection(&sCriticalSection); + if (ul_reason_for_call == DLL_PROCESS_ATTACH) + { + InitializeCriticalSection(&sCriticalSection); + } return TRUE; } |