Andrew Talbot : user32: Constify some variables.

Alexandre Julliard julliard at winehq.org
Mon Nov 26 08:16:16 CST 2007


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Wed Nov 21 16:19:58 2007 +0000

user32: Constify some variables.

---

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

diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 3a93121..cb60ffc 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -216,7 +216,7 @@ const struct builtin_class_descr MENU_builtin_class =
     if (flags & (bit)) { flags &= ~(bit); MENUOUT ((text)); } \
   } while (0)
 
-static void do_debug_print_menuitem(const char *prefix, MENUITEM * mp,
+static void do_debug_print_menuitem(const char *prefix, const MENUITEM *mp,
 				    const char *postfix)
 {
     static const char * const hbmmenus[] = { "HBMMENU_CALLBACK", "", "HBMMENU_SYSTEM",
@@ -1095,7 +1095,7 @@ static void MENU_CalcItemSize( HDC hdc, MENUITEM *lpitem, HWND hwndOwner,
  *           MENU_GetMaxPopupHeight
  */
 static UINT
-MENU_GetMaxPopupHeight(LPPOPUPMENU lppop)
+MENU_GetMaxPopupHeight(const POPUPMENU *lppop)
 {
     if (lppop->cyMax)
         return lppop->cyMax;
@@ -1268,7 +1268,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect,
  * Draw scroll arrows.
  */
 static void
-MENU_DrawScrollArrows(LPPOPUPMENU lppop, HDC hdc)
+MENU_DrawScrollArrows(const POPUPMENU *lppop, HDC hdc)
 {
     HDC hdcMem = CreateCompatibleDC(hdc);
     HBITMAP hOrigBitmap;




More information about the wine-cvs mailing list