user32/tests: Also check against the low word of hSubMenu (resend of try 2)
André Hentschel
nerv at dawncrow.de
Mon Aug 3 12:58:14 CDT 2015
There are already existing checks like:
info.wID == id || info.wID == LOWORD(id)
or
info.hSubMenu == submenu || (ULONG_PTR)info.hSubMenu == LOWORD(submenu)
---
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..2ef6b6f 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\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
More information about the wine-patches
mailing list