user32/tests: On W2k8 WOW64 only the low word might match

André Hentschel nerv at dawncrow.de
Tue Jul 21 13:32:24 CDT 2015


https://test.winehq.org/data/tests/user32:menu.html
---
 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..2362ec5 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 || broken(mii.wID == LOWORD(mii.hSubMenu) /* Win2k8 WOW64 */),
+               "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