From: André Hentschel Subject: user32/tests: Also check against the low word of hSubMenu (try 3) Message-Id: <55DCD213.6050607@dawncrow.de> Date: Tue, 25 Aug 2015 22:37:39 +0200 There are already existing checks like: info.wID == id || info.wID == LOWORD(id) or info.hSubMenu == submenu || (ULONG_PTR)info.hSubMenu == LOWORD(submenu) try 3: update the test message --- dlls/user32/tests/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c index 62c3229..33a5207 100644 --- a/dlls/user32/tests/menu.c +++ b/dlls/user32/tests/menu.c @@ -2514,7 +2514,8 @@ if (0) if (mii.hSubMenu) { - ok(mii.wID == (UINT_PTR)mii.hSubMenu, "id %u: wID should be equal to hSubMenu\n", checked_cmd); + ok(mii.wID == (UINT_PTR)mii.hSubMenu || mii.wID == LOWORD(mii.hSubMenu), + "id %u: wID should be equal to hSubMenu or its LOWORD\n", checked_cmd); if (!GetMenuItemCount(mii.hSubMenu)) { ok(mii.fType == checked_type, "id %u: expected fType %04x, got %04x\n", checked_cmd, checked_type, mii.fType); -- 1.9.1