Troy Rollo : user: Fix return type of EnableMenuItem.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 10 14:13:49 CST 2006


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

Author: Troy Rollo <wine at troy.rollo.name>
Date:   Tue Jan 10 12:08:48 2006 +0100

user: Fix return type of EnableMenuItem.

---

 dlls/user/menu.c         |    2 +-
 dlls/user/user16.c       |    2 +-
 include/wine/winuser16.h |    2 +-
 include/winuser.h        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/user/menu.c b/dlls/user/menu.c
index e04291d..ba3607e 100644
--- a/dlls/user/menu.c
+++ b/dlls/user/menu.c
@@ -3235,7 +3235,7 @@ DWORD WINAPI CheckMenuItem( HMENU hMenu,
 /**********************************************************************
  *         EnableMenuItem    (USER32.@)
  */
-UINT WINAPI EnableMenuItem( HMENU hMenu, UINT wItemID, UINT wFlags )
+BOOL WINAPI EnableMenuItem( HMENU hMenu, UINT wItemID, UINT wFlags )
 {
     UINT    oldflags;
     MENUITEM *item;
diff --git a/dlls/user/user16.c b/dlls/user/user16.c
index 76008a3..b945ce0 100644
--- a/dlls/user/user16.c
+++ b/dlls/user/user16.c
@@ -531,7 +531,7 @@ BOOL16 WINAPI CheckMenuItem16( HMENU16 h
 /**********************************************************************
  *         EnableMenuItem    (USER.155)
  */
-UINT16 WINAPI EnableMenuItem16( HMENU16 hMenu, UINT16 wItemID, UINT16 wFlags )
+BOOL16 WINAPI EnableMenuItem16( HMENU16 hMenu, UINT16 wItemID, UINT16 wFlags )
 {
     return EnableMenuItem( HMENU_32(hMenu), wItemID, wFlags );
 }
diff --git a/include/wine/winuser16.h b/include/wine/winuser16.h
index 5734f02..e11f7fd 100644
--- a/include/wine/winuser16.h
+++ b/include/wine/winuser16.h
@@ -716,7 +716,7 @@ BOOL16      WINAPI DrawIconEx16(HDC16,IN
 VOID        WINAPI DrawMenuBar16(HWND16);
 INT16       WINAPI DrawText16(HDC16,LPCSTR,INT16,LPRECT16,UINT16);
 BOOL16      WINAPI EmptyClipboard16(void);
-UINT16      WINAPI EnableMenuItem16(HMENU16,UINT16,UINT16);
+BOOL16      WINAPI EnableMenuItem16(HMENU16,UINT16,UINT16);
 BOOL16      WINAPI EnableScrollBar16(HWND16,INT16,UINT16);
 BOOL16      WINAPI EnableWindow16(HWND16,BOOL16);
 BOOL16      WINAPI EndDeferWindowPos16(HDWP16);
diff --git a/include/winuser.h b/include/winuser.h
index e89b26b..aaed2de 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -4260,7 +4260,7 @@ INT         WINAPI DrawTextExA(HDC,LPSTR
 INT         WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS);
 #define     DrawTextEx WINELIB_NAME_AW(DrawTextEx)
 BOOL        WINAPI EmptyClipboard(void);
-UINT        WINAPI EnableMenuItem(HMENU,UINT,UINT);
+BOOL        WINAPI EnableMenuItem(HMENU,UINT,UINT);
 BOOL        WINAPI EnableScrollBar(HWND,INT,UINT);
 BOOL        WINAPI EnableWindow(HWND,BOOL);
 BOOL        WINAPI EndDeferWindowPos(HDWP);




More information about the wine-cvs mailing list