mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
fix inserting menu by position in InsertMenuA/W
svn path=/trunk/; revision=20047
This commit is contained in:
parent
bb724032cb
commit
38507bbda5
1 changed files with 2 additions and 2 deletions
|
@ -4030,7 +4030,7 @@ InsertMenuA(
|
|||
mii.fMask |= MIIM_ID;
|
||||
mii.wID = (UINT)uIDNewItem;
|
||||
}
|
||||
return InsertMenuItemA(hMenu, uPosition, (BOOL)!(MF_BYPOSITION & uFlags), &mii);
|
||||
return InsertMenuItemA(hMenu, uPosition, (BOOL)((MF_BYPOSITION & uFlags) > 0), &mii);
|
||||
}
|
||||
|
||||
|
||||
|
@ -4189,7 +4189,7 @@ InsertMenuW(
|
|||
mii.fMask |= MIIM_ID;
|
||||
mii.wID = (UINT)uIDNewItem;
|
||||
}
|
||||
return InsertMenuItemW(hMenu, uPosition, (BOOL)!(MF_BYPOSITION & uFlags), &mii);
|
||||
return InsertMenuItemW(hMenu, uPosition, (BOOL)((MF_BYPOSITION & uFlags) > 0), &mii);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue