Module: wine Branch: master Commit: c4245a7fb6a1b4fdaffa7db8c55ec083edbcc75e URL: http://source.winehq.org/git/wine.git/?a=commit;h=c4245a7fb6a1b4fdaffa7db8c5...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Aug 7 17:45:10 2007 +0200
user32: Fixed the return value of DispatchMessageA/W.
---
dlls/user32/message.c | 8 ++++---- include/winuser.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/user32/message.c b/dlls/user32/message.c index bfdd807..a665b12 100644 --- a/dlls/user32/message.c +++ b/dlls/user32/message.c @@ -2961,10 +2961,10 @@ BOOL WINAPI TranslateMessage( const MSG *msg ) * * See DispatchMessageW. */ -LONG WINAPI DispatchMessageA( const MSG* msg ) +LRESULT WINAPI DispatchMessageA( const MSG* msg ) { WND * wndPtr; - LONG retval; + LRESULT retval; WNDPROC winproc;
/* Process timer messages */ @@ -3033,10 +3033,10 @@ LONG WINAPI DispatchMessageA( const MSG* msg ) * ECMA-234, Win32 * */ -LONG WINAPI DispatchMessageW( const MSG* msg ) +LRESULT WINAPI DispatchMessageW( const MSG* msg ) { WND * wndPtr; - LONG retval; + LRESULT retval; WNDPROC winproc;
/* Process timer messages */ diff --git a/include/winuser.h b/include/winuser.h index 1c650bc..4297a8d 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -4475,8 +4475,8 @@ INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC, INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); #define DialogBoxParam WINELIB_NAME_AW(DialogBoxParam) -LONG WINAPI DispatchMessageA(const MSG*); -LONG WINAPI DispatchMessageW(const MSG*); +LRESULT WINAPI DispatchMessageA(const MSG*); +LRESULT WINAPI DispatchMessageW(const MSG*); #define DispatchMessage WINELIB_NAME_AW(DispatchMessage) INT WINAPI DlgDirListA(HWND,LPSTR,INT,INT,UINT); INT WINAPI DlgDirListW(HWND,LPWSTR,INT,INT,UINT);