user32/tests: Fix menu test failures on East-Asian machines.

This commit is contained in:
Greg Geldorp 2011-01-13 11:25:02 +01:00 committed by Alexandre Julliard
parent 213532a260
commit 2b0d8ed7c3
1 changed files with 3 additions and 1 deletions

View File

@ -954,7 +954,9 @@ static void check_menu_item_info( int line, HMENU hmenu, BOOL ansi, UINT mask, U
"wrong bmpitem %p/%p\n", info.hbmpItem, item );
ok_(__FILE__, line)( info.dwTypeData == type_data || (ULONG_PTR)info.dwTypeData == LOWORD(type_data),
"wrong type data %p/%p\n", info.dwTypeData, type_data );
ok_(__FILE__, line)( info.cch == out_len, "wrong len %x/%x\n", info.cch, out_len );
ok_(__FILE__, line)( info.cch == out_len ||
broken(! ansi && info.cch == 2 * out_len) /* East-Asian */,
"wrong len %x/%x\n", info.cch, out_len );
if (expname)
{
if(ansi)