Commit 49a54568 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Also log the current thread and default user UI languages.

parent 0ae12c4a
......@@ -391,9 +391,21 @@ static void print_version (void)
static void print_language(void)
{
HMODULE hkernel32;
LANGID (WINAPI *pGetUserDefaultUILanguage)(void);
LANGID (WINAPI *pGetThreadUILanguage)(void);
xprintf (" SystemDefaultLCID=%x\n", GetSystemDefaultLCID());
xprintf (" UserDefaultLCID=%x\n", GetUserDefaultLCID());
xprintf (" ThreadLocale=%x\n", GetThreadLocale());
hkernel32 = GetModuleHandleA("kernel32.dll");
pGetUserDefaultUILanguage = (void*)GetProcAddress(hkernel32, "GetUserDefaultUILanguage");
pGetThreadUILanguage = (void*)GetProcAddress(hkernel32, "GetThreadUILanguage");
if (pGetUserDefaultUILanguage)
xprintf (" UserDefaultUILanguage=%x\n", pGetUserDefaultUILanguage());
if (pGetThreadUILanguage)
xprintf (" ThreadUILanguage=%x\n", pGetThreadUILanguage());
}
static inline int is_dot_dir(const char* x)
......
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