mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
fixed bug 888 (menus created by application itself may not appear)
svn path=/trunk/; revision=19484
This commit is contained in:
parent
45d8a5eb8b
commit
071e4d5c83
|
@ -907,7 +907,9 @@ IntInsertMenuItem(PMENU_OBJECT MenuObject, UINT uItem, BOOL fByPosition,
|
||||||
|
|
||||||
pos = IntInsertMenuItemToList(MenuObject, MenuItem, pos);
|
pos = IntInsertMenuItemToList(MenuObject, MenuItem, pos);
|
||||||
|
|
||||||
return pos >= 0;
|
DPRINT("IntInsertMenuItemToList = %i\n", pos);
|
||||||
|
|
||||||
|
return (pos >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT FASTCALL
|
UINT FASTCALL
|
||||||
|
@ -1561,11 +1563,13 @@ NtUserInsertMenuItem(
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
RETURN( FALSE);
|
RETURN( FALSE);
|
||||||
}
|
}
|
||||||
|
/* structure can be 44 bytes or 48 bytes in size
|
||||||
if (ItemInfo.cbSize != sizeof(MENUITEMINFOW))
|
if (ItemInfo.cbSize != sizeof(MENUITEMINFOW))
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||||
RETURN( FALSE);
|
RETURN( FALSE);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
RETURN( IntInsertMenuItem(Menu, uItem, fByPosition, &ItemInfo));
|
RETURN( IntInsertMenuItem(Menu, uItem, fByPosition, &ItemInfo));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue