user32: Remove duplicated code
Dmitry Timoshkov
dmitry at codeweavers.com
Wed May 16 04:29:19 CDT 2007
Hello,
this is something I noticed while working on recent menu fixes.
MENU_SetItemData already adds MF_POPUP to id->wFlags if flags contain MF_POPUP.
Changelog:
user32: Remove duplicated code.
---
dlls/user32/menu.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index b57b0dc..cf74381 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -3729,9 +3729,6 @@ BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags,
return FALSE;
}
- if (flags & MF_POPUP) /* Set the MF_POPUP flag on the popup-menu */
- (MENU_GetMenu((HMENU)id))->wFlags |= MF_POPUP;
-
item->hCheckBit = item->hUnCheckBit = 0;
return TRUE;
}
--
1.5.1.3
More information about the wine-patches
mailing list