fix inserting menu by position in InsertMenuA/W
Modified: trunk/reactos/lib/user32/windows/menu.c
_____
Modified: trunk/reactos/lib/user32/windows/menu.c
--- trunk/reactos/lib/user32/windows/menu.c 2005-12-10 22:28:26 UTC
(rev 20046)
+++ trunk/reactos/lib/user32/windows/menu.c 2005-12-11 00:07:56 UTC
(rev 20047)
@@ -4030,7 +4030,7 @@
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 @@
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);
}
Show replies by date