From c4245a7fb6a1b4fdaffa7db8c55ec083edbcc75e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 7 Aug 2007 17:45:10 +0200 Subject: [PATCH] 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 bfdd8077e5f..a665b12c8d5 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 1c650bc867d..4297a8d2d3d 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);