[2/6] user32: Put some menu items in the test_menu_trackagain menu.

Vincent Povirk madewokherd at gmail.com
Thu Mar 6 17:03:12 CST 2014


-------------- next part --------------
From c3746b2fab2b9504cfad14d0b70ec3536b675a27 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 17 Feb 2014 15:45:43 -0600
Subject: [PATCH 2/6] user32: Put some menu items in the test_menu_trackagain
 menu.

Calling TrackPopupMenu with an empty menu fails, but this test isn't about
that. So avoid that case to prevent confusion.
---
 dlls/user32/tests/menu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index d735922..7cab0a0 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -3251,8 +3251,13 @@ static void test_menu_trackagain(void)
     g_hmenu = CreatePopupMenu();
     ok(g_hmenu != NULL, "CreateMenu failed with error %d\n", GetLastError());
 
+    ret = AppendMenuA(g_hmenu, MF_STRING , 100, "item 1");
+    ok(ret, "AppendMenu failed.\n");
+    ret = AppendMenuA(g_hmenu, MF_STRING , 101, "item 2");
+    ok(ret, "AppendMenu failed.\n");
+
     ret = TrackPopupMenu( g_hmenu, 0, 100, 100, 0, hwnd, NULL);
-    todo_wine ok(ret == FALSE, "got %d\n", ret);
+    ok(ret == TRUE, "got %d\n", ret);
 
     DestroyMenu(g_hmenu);
     DestroyWindow(hwnd);
-- 
1.8.3.2



More information about the wine-patches mailing list