Commit 99020f80 authored by Troy Rollo's avatar Troy Rollo Committed by Alexandre Julliard

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

parent f1e120ba
......@@ -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 );
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment