From 99020f800144a4c04dc5a4644cc556d148dfa518 Mon Sep 17 00:00:00 2001 From: Troy Rollo Date: Tue, 14 Feb 2006 11:36:49 +0100 Subject: [PATCH] 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 6aa95a1e42b..eb2ca451e6f 100644 --- a/dlls/user/dialog.c +++ b/dlls/user/dialog.c @@ -1264,10 +1264,10 @@ BOOL WINAPI SetDlgItemTextW( HWND hwnd, INT id, LPCWSTR lpString ) /*********************************************************************** * 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, INT id, LPSTR str, UINT len ) /*********************************************************************** * 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 313679cc3e2..7bcf35b8b0f 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);