From fba58fb1f0a70a731c6d627ecb7a702afc312824 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Jun 2011 05:36:16 -0700 Subject: Make sure user configuration is always initialized for Windows --- Alc/ALc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index cdacec56..9d584e8c 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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) -- cgit v1.2.3