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:
Louis Lenders 2018-03-31 11:26:24 +02:00 committed by Alexandre Julliard
parent 92fde7f352
commit e0f9ff9eb0
2 changed files with 6 additions and 2 deletions

View File

@ -2821,7 +2821,11 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
LANGID WINAPI SetThreadUILanguage( LANGID langid )
{
TRACE("(0x%04x) stub - returning success\n", langid);
return langid;
if (!langid)
return GetThreadUILanguage();
else
return langid;
}
/******************************************************************************

View File

@ -5459,7 +5459,7 @@ static void test_SetThreadUILanguage(void)
}
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));
ok(res == MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH_BELGIAN),