mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +00:00
- when menu position cannot be found insert new item at the end
- reduces winetest failures from 1550 to 1250 - behaviour verified on Windows Vista svn path=/trunk/; revision=33400
This commit is contained in:
parent
7a754a98d0
commit
9539538ba0
|
@ -953,8 +953,9 @@ IntInsertMenuItem(PMENU_OBJECT MenuObject, UINT uItem, BOOL fByPosition,
|
||||||
}
|
}
|
||||||
if (SubMenu == NULL)
|
if (SubMenu == NULL)
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
/* default to last position of menu */
|
||||||
return FALSE;
|
SubMenu = MenuObject;
|
||||||
|
pos = MenuObject->MenuInfo.MenuItemCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue