aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-16 05:36:16 -0700
committerChris Robinson <[email protected]>2011-06-16 05:36:16 -0700
commitfba58fb1f0a70a731c6d627ecb7a702afc312824 (patch)
tree5c280802d9f3a2bf093565dea48e3ac006ebeab3 /Alc
parentdad7f1cf0f507a3a1170159b2f1e72f8ad372d52 (diff)
Make sure user configuration is always initialized for Windows
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c6
1 files 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)