mirror of
https://github.com/reactos/wine.git
synced 2025-01-07 11:51:28 +00:00
user32/tests: Fix a test that assumes that a menu handle is invalid.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8454e23529
commit
8693805431
@ -3789,6 +3789,8 @@ static void test_AppendMenu(void)
|
|||||||
mii.cbSize = sizeof(mii);
|
mii.cbSize = sizeof(mii);
|
||||||
mii.fMask = MIIM_SUBMENU;
|
mii.fMask = MIIM_SUBMENU;
|
||||||
mii.hSubMenu = (HMENU)204;
|
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);
|
ret = InsertMenuItemA(hmenu, 0, TRUE, &mii);
|
||||||
ok(!ret, "InsertMenuItem should fail\n");
|
ok(!ret, "InsertMenuItem should fail\n");
|
||||||
ret = SetMenuItemInfoA(hmenu, 0, TRUE, &mii);
|
ret = SetMenuItemInfoA(hmenu, 0, TRUE, &mii);
|
||||||
|
Loading…
Reference in New Issue
Block a user