Skip to content
Snippets Groups Projects
Commit 86938054 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

user32/tests: Fix a test that assumes that a menu handle is invalid.

parent 8454e235
No related branches found
No related tags found
No related merge requests found
......@@ -3789,6 +3789,8 @@ static void test_AppendMenu(void)
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_SUBMENU;
mii.hSubMenu = (HMENU)204;
/* make sure the menu handle is truly invalid */
while (IsMenu( mii.hSubMenu )) mii.hSubMenu = (HMENU)((ULONG_PTR)mii.hSubMenu + 1);
ret = InsertMenuItemA(hmenu, 0, TRUE, &mii);
ok(!ret, "InsertMenuItem should fail\n");
ret = SetMenuItemInfoA(hmenu, 0, TRUE, &mii);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment