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:
parent
a5639d62b5
commit
948f20312b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue