Commit 948f2031 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a5639d62
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment