use GetSystemDefaultLCID() for determination of the system language

pull/1/head
Heiko Hund 15 years ago
parent d4a5ae3e74
commit 223cf23748

@ -71,7 +71,7 @@ GetGUILanguage(void)
if (status == ERROR_SUCCESS) if (status == ERROR_SUCCESS)
GetRegistryValueNumeric(regkey, _T("ui_language"), &value); GetRegistryValueNumeric(regkey, _T("ui_language"), &value);
gui_language = ( value != 0 ? value : LANGIDFROMLCID(GetThreadLocale()) ); gui_language = ( value != 0 ? value : LANGIDFROMLCID(GetSystemDefaultLCID()) );
return gui_language; return gui_language;
} }

Loading…
Cancel
Save