diff options
author | Chris Robinson <[email protected]> | 2011-06-16 05:36:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-16 05:36:16 -0700 |
commit | fba58fb1f0a70a731c6d627ecb7a702afc312824 (patch) | |
tree | 5c280802d9f3a2bf093565dea48e3ac006ebeab3 | |
parent | dad7f1cf0f507a3a1170159b2f1e72f8ad372d52 (diff) |
Make sure user configuration is always initialized for Windows
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -424,7 +424,6 @@ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hModule); alc_init(); - alc_initconfig(); break; case DLL_PROCESS_DETACH: @@ -443,7 +442,6 @@ static void alc_constructor(void) { atexit(alc_destructor); alc_init(); - alc_initconfig(); } static void alc_destructor(void) @@ -489,6 +487,10 @@ static void alc_init(void) InitializeCriticalSection(&g_csMutex); InitializeCriticalSection(&ListLock); ALTHUNK_INIT(); + +#ifdef _WIN32 + alc_initconfig(); +#endif } static void alc_deinit(void) |