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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-05-20 13:42:12 +02:00 committed by Alexandre Julliard
parent a5639d62b5
commit 948f20312b
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}