Troy Rollo : user: Fix return type and argument type for GetDlgItemText{A, W}.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 14 07:28:12 CST 2006


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

Author: Troy Rollo <wine at troy.rollo.name>
Date:   Tue Feb 14 11:36:49 2006 +0100

user: Fix return type and argument type for GetDlgItemText{A,W}.

---

 dlls/user/dialog.c |    8 ++++----
 include/winuser.h  |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/user/dialog.c b/dlls/user/dialog.c
index 6aa95a1..eb2ca45 100644
--- a/dlls/user/dialog.c
+++ b/dlls/user/dialog.c
@@ -1264,10 +1264,10 @@ BOOL WINAPI SetDlgItemTextW( HWND hwnd, 
 /***********************************************************************
  *		GetDlgItemTextA (USER32.@)
  */
-INT WINAPI GetDlgItemTextA( HWND hwnd, INT id, LPSTR str, UINT len )
+UINT WINAPI GetDlgItemTextA( HWND hwnd, INT id, LPSTR str, INT len )
 {
     if (str && (len > 0)) str[0] = '\0';
-    return (INT)SendDlgItemMessageA( hwnd, id, WM_GETTEXT,
+    return (UINT)SendDlgItemMessageA( hwnd, id, WM_GETTEXT,
                                          len, (LPARAM)str );
 }
 
@@ -1275,10 +1275,10 @@ INT WINAPI GetDlgItemTextA( HWND hwnd, I
 /***********************************************************************
  *		GetDlgItemTextW (USER32.@)
  */
-INT WINAPI GetDlgItemTextW( HWND hwnd, INT id, LPWSTR str, UINT len )
+UINT WINAPI GetDlgItemTextW( HWND hwnd, INT id, LPWSTR str, INT len )
 {
     if (str && (len > 0)) str[0] = '\0';
-    return (INT)SendDlgItemMessageW( hwnd, id, WM_GETTEXT,
+    return (UINT)SendDlgItemMessageW( hwnd, id, WM_GETTEXT,
                                          len, (LPARAM)str );
 }
 
diff --git a/include/winuser.h b/include/winuser.h
index 313679c..7bcf35b 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -4352,8 +4352,8 @@ HWND        WINAPI GetDesktopWindow(void
 INT         WINAPI GetDlgCtrlID(HWND);
 HWND        WINAPI GetDlgItem(HWND,INT);
 UINT        WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
-INT         WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
-INT         WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
+UINT        WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT);
+UINT        WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT);
 #define     GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
 UINT        WINAPI GetDoubleClickTime(void);
 HWND        WINAPI GetFocus(void);




More information about the wine-cvs mailing list