Alexandre Julliard : user:
Make sure to always pass a 16-bit pointer to CallWindowProc16.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 9 14:15:25 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 0b7dcd24184d42cd630879cf7bf3428074468d73
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0b7dcd24184d42cd630879cf7bf3428074468d73
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue May 9 15:03:14 2006 +0200
user: Make sure to always pass a 16-bit pointer to CallWindowProc16.
---
dlls/user/msg16.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user/msg16.c b/dlls/user/msg16.c
index 4d79fdd..db3da01 100644
--- a/dlls/user/msg16.c
+++ b/dlls/user/msg16.c
@@ -67,7 +67,7 @@ LRESULT WINAPI SendMessage16( HWND16 hwn
if (!(winproc = (WNDPROC16)GetWindowLong16( hwnd16, GWLP_WNDPROC ))) return 0;
SPY_EnterMessage( SPY_SENDMESSAGE16, hwnd, msg, wparam, lparam );
- result = CallWindowProc16( (WNDPROC16)winproc, hwnd16, msg, wparam, lparam );
+ result = CallWindowProc16( winproc, hwnd16, msg, wparam, lparam );
SPY_ExitMessage( SPY_RESULT_OK16, hwnd, msg, result, wparam, lparam );
}
else /* map to 32-bit unicode for inter-thread/process message */
@@ -369,7 +369,7 @@ LONG WINAPI DispatchMessage16( const MSG
else SetLastError( ERROR_INVALID_WINDOW_HANDLE );
return 0;
}
- winproc = (WNDPROC16)wndPtr->winproc;
+ winproc = WINPROC_GetProc16( wndPtr->winproc );
WIN_ReleasePtr( wndPtr );
SPY_EnterMessage( SPY_DISPATCHMESSAGE16, hwnd, msg->message, msg->wParam, msg->lParam );
More information about the wine-cvs
mailing list