Francois Gouget : user32/tests: Fix the clipboard CF_LOCALE test.
Module: wine Branch: master Commit: 948f20312b040d3c2ef2b238534569edc569f709 URL: https://source.winehq.org/git/wine.git/?a=commit;h=948f20312b040d3c2ef2b2385... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu May 20 13:42:12 2021 +0200 user32/tests: Fix the clipboard CF_LOCALE test. By default CF_LOCALE matches the current input language, not the default user LCID. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/clipboard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index e2a2c332710..2fceab6c0f6 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -777,10 +777,11 @@ static void test_synthesized(void) case CF_LOCALE: { UINT *ptr = GlobalLock( data ); + DWORD layout = LOWORD( GetKeyboardLayout(0) ); ok( GlobalSize( data ) == sizeof(*ptr), "%u: size %lu\n", i, GlobalSize( data )); - ok( *ptr == GetUserDefaultLCID() || + ok( *ptr == layout || broken( *ptr == MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT )), - "%u: CF_LOCALE %08x/%08x\n", i, *ptr, GetUserDefaultLCID() ); + "%u: CF_LOCALE %04x/%04x\n", i, *ptr, layout ); GlobalUnlock( data ); break; }
participants (1)
-
Alexandre Julliard