msg16.c prevent unhandled memory exception
EA Durbin
ead1234 at hotmail.com
Tue May 8 16:49:12 CDT 2007
patch by Christian Lupien
_________________________________________________________________
See what youre getting into
before you go there
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
-------------- next part --------------
>From 608c9c85be30602d3d48f518640bb6346578276a Mon Sep 17 00:00:00 2001
From: EA Durbin <ead1234 at hotmail.com>
Date: Tue, 8 May 2007 15:51:32 -0500
Subject: msg16.c prevent unhandled memory exception, by Christian Lupien
---
dlls/user32/msg16.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/msg16.c b/dlls/user32/msg16.c
index 3193a60..3114cea 100644
--- a/dlls/user32/msg16.c
+++ b/dlls/user32/msg16.c
@@ -349,6 +349,7 @@ LONG WINAPI DispatchMessage16( const MSG16* msg )
WNDPROC16 winproc;
LONG retval;
HWND hwnd = WIN_Handle32( msg->hwnd );
+ MSG16 tmpmsg = *msg;
/* Process timer messages */
if ((msg->message == WM_TIMER) || (msg->message == WM_SYSTIMER))
@@ -374,7 +375,7 @@ LONG WINAPI DispatchMessage16( const MSG16* msg )
SPY_EnterMessage( SPY_DISPATCHMESSAGE16, hwnd, msg->message,
msg->wParam, msg->lParam );
retval = CallWindowProc16( winproc, msg->hwnd, msg->message,
msg->wParam, msg->lParam );
- SPY_ExitMessage( SPY_RESULT_OK16, hwnd, msg->message, retval,
msg->wParam, msg->lParam );
+ SPY_ExitMessage( SPY_RESULT_OK16, hwnd, tmpmsg.message, retval,
tmpmsg.wParam, tmpmsg.lParam );
return retval;
}
--
1.4.4.2
More information about the wine-patches
mailing list