kernel32: Improve stub for SetThreadUILanguage.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
92fde7f352
commit
e0f9ff9eb0
|
@ -2821,7 +2821,11 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
|
||||||
LANGID WINAPI SetThreadUILanguage( LANGID langid )
|
LANGID WINAPI SetThreadUILanguage( LANGID langid )
|
||||||
{
|
{
|
||||||
TRACE("(0x%04x) stub - returning success\n", langid);
|
TRACE("(0x%04x) stub - returning success\n", langid);
|
||||||
return langid;
|
|
||||||
|
if (!langid)
|
||||||
|
return GetThreadUILanguage();
|
||||||
|
else
|
||||||
|
return langid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|
|
@ -5459,7 +5459,7 @@ static void test_SetThreadUILanguage(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
res = pSetThreadUILanguage(0);
|
res = pSetThreadUILanguage(0);
|
||||||
todo_wine ok(res == pGetThreadUILanguage(), "expected %d got %d\n", pGetThreadUILanguage(), res);
|
ok(res == pGetThreadUILanguage(), "expected %d got %d\n", pGetThreadUILanguage(), res);
|
||||||
|
|
||||||
res = pSetThreadUILanguage(MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH_BELGIAN));
|
res = pSetThreadUILanguage(MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH_BELGIAN));
|
||||||
ok(res == MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH_BELGIAN),
|
ok(res == MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH_BELGIAN),
|
||||||
|
|
Loading…
Reference in New Issue