Francois Gouget : user32/tests/msg: Don' t mess up lParam as it is passed on to DefWindowProcA().

Alexandre Julliard julliard at winehq.org
Wed Nov 14 07:29:58 CST 2007


Module: wine
Branch: master
Commit: b0afca5704c2afc3b0886b138be2f4c528906136
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b0afca5704c2afc3b0886b138be2f4c528906136

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Nov 13 20:47:53 2007 +0100

user32/tests/msg: Don't mess up lParam as it is passed on to DefWindowProcA().

---

 dlls/user32/tests/msg.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 769277f..d1f5892 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -6246,12 +6246,14 @@ static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam
     static long beginpaint_counter = 0;
     LRESULT ret;
     struct message msg;
+    LPARAM logged_lParam;
 
     trace("parent: %p, %04x, %08lx, %08lx\n", hwnd, message, wParam, lParam);
 
     /* explicitly ignore WM_GETICON message */
     if (message == WM_GETICON) return 0;
 
+    logged_lParam=lParam;
     if (log_all_parent_messages ||
         message == WM_PARENTNOTIFY || message == WM_CANCELMODE ||
 	message == WM_SETFOCUS || message == WM_KILLFOCUS ||
@@ -6313,7 +6315,7 @@ static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam
                 di.u.item.action = dis->itemAction;
                 di.u.item.state = dis->itemState;
 
-                lParam = di.u.lp;
+                logged_lParam = di.u.lp;
                 break;
             }
         }
@@ -6323,7 +6325,7 @@ static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam
         if (defwndproc_counter) msg.flags |= defwinproc;
         if (beginpaint_counter) msg.flags |= beginpaint;
         msg.wParam = wParam;
-        msg.lParam = lParam;
+        msg.lParam = logged_lParam;
         add_message(&msg);
     }
 




More information about the wine-cvs mailing list