Mikhail Maroukhine : user32: Fix compiler warnings with flag -Wcast-qual.

Alexandre Julliard julliard at winehq.org
Mon Mar 29 09:57:56 CDT 2010


Module: wine
Branch: master
Commit: 819464f1d90f1ca1c6e9efd2dcd3d45e7c4b47a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=819464f1d90f1ca1c6e9efd2dcd3d45e7c4b47a4

Author: Mikhail Maroukhine <mikolg at yandex.ru>
Date:   Sun Mar 28 16:15:00 2010 +0700

user32: Fix compiler warnings with flag -Wcast-qual.

---

 dlls/user32/menu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 6e7e663..1444f84 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -4728,7 +4728,7 @@ BOOL WINAPI SetMenuItemInfoA(HMENU hmenu, UINT item, BOOL bypos,
 
     TRACE("hmenu %p, item %u, by pos %d, info %p\n", hmenu, item, bypos, lpmii);
 
-    if (!MENU_NormalizeMenuItemInfoStruct( (MENUITEMINFOW *)lpmii, &mii )) return FALSE;
+    if (!MENU_NormalizeMenuItemInfoStruct( (const MENUITEMINFOW *)lpmii, &mii )) return FALSE;
 
     return SetMenuItemInfo_common(MENU_FindItem(&hmenu, &item, bypos? MF_BYPOSITION : 0),
                                   &mii, FALSE);
@@ -4851,7 +4851,7 @@ BOOL WINAPI InsertMenuItemA(HMENU hMenu, UINT uItem, BOOL bypos,
 
     TRACE("hmenu %p, item %04x, by pos %d, info %p\n", hMenu, uItem, bypos, lpmii);
 
-    if (!MENU_NormalizeMenuItemInfoStruct( (MENUITEMINFOW *)lpmii, &mii )) return FALSE;
+    if (!MENU_NormalizeMenuItemInfoStruct( (const MENUITEMINFOW *)lpmii, &mii )) return FALSE;
 
     item = MENU_InsertItem(hMenu, uItem, bypos ? MF_BYPOSITION : 0 );
     return SetMenuItemInfo_common(item, &mii, FALSE);




More information about the wine-cvs mailing list