diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-06-04 07:51:27 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-06-04 07:51:27 -0700 |
commit | ea246125619aca35ac6672d6be4b8aa08123666f (patch) | |
tree | a0045fde0718ad052986994da2ad625e75f18cfd /indra/media_plugins/winmmshim | |
parent | 79e92babf5a6e028a8337696c68b6982713b722a (diff) |
BUG-2707 make use of OsOutputDebugString _DEBUG only on Windows to avoid throwing unhandlable exceptions in coroutines in RelWithDebInfo builds
Diffstat (limited to 'indra/media_plugins/winmmshim')
-rwxr-xr-x | indra/media_plugins/winmmshim/winmm_shim.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/media_plugins/winmmshim/winmm_shim.cpp b/indra/media_plugins/winmmshim/winmm_shim.cpp index aeadb53f31..03095d137f 100755 --- a/indra/media_plugins/winmmshim/winmm_shim.cpp +++ b/indra/media_plugins/winmmshim/winmm_shim.cpp @@ -56,22 +56,23 @@ void ll_winmm_shim_initialize(){ // grab winmm.dll from system path, where it should live wsprintf(dll_path, "%s\\winmm.dll", system_path); HMODULE winmm_handle = ::LoadLibrary(dll_path); - + if (winmm_handle != NULL) { // we have a dll, let's get out pointers! initialized = true; init_function_pointers(winmm_handle); -#if BUG_2707_HUNT +#if defined(_DEBUG) ::OutputDebugStringA("WINMM_SHIM.DLL: real winmm.dll initialized successfully\n"); #endif } +#if defined(_DEBUG) else { // failed to initialize real winmm.dll -#if BUG_2707_HUNT ::OutputDebugStringA("WINMM_SHIM.DLL: Failed to initialize real winmm.dll\n"); -#endif } +#endif + } LeaveCriticalSection(&sCriticalSection); } |