Commit 2548742b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix locale initialization.

parent f2f56d56
......@@ -87,14 +87,12 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
if (!msvcrt_init_tls())
return FALSE;
msvcrt_init_mt_locks();
if(!MSVCRT_setlocale(0, "C")) {
msvcrt_free_mt_locks();
return FALSE;
}
if (!msvcrt_init_tls()) {
_free_locale(MSVCRT_locale);
msvcrt_free_mt_locks();
msvcrt_free_tls_mem();
return FALSE;
}
msvcrt_init_io();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment