From 7fd362dacc3231585bd7501ad82e70d754d423bd Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 10 Apr 2014 23:32:34 +0000 Subject: [PATCH] [Win32k] - Add write back for HCBT_MOVESIZE. svn path=/trunk/; revision=62702 --- reactos/win32ss/user/ntuser/callback.c | 35 ++++++++++++++++---------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/reactos/win32ss/user/ntuser/callback.c b/reactos/win32ss/user/ntuser/callback.c index 7f068628c89..d8f81e83e94 100644 --- a/reactos/win32ss/user/ntuser/callback.c +++ b/reactos/win32ss/user/ntuser/callback.c @@ -736,21 +736,30 @@ co_IntCallHookProc(INT HookId, switch (HookId) { case WH_CBT: - if (Code == HCBT_CREATEWND) + { + switch (Code) { - if (CbtCreatewndExtra) - {/* - The parameters could have been changed, include the coordinates - and dimensions of the window. We copy it back. - */ - CbtCreateWnd->hwndInsertAfter = CbtCreatewndExtra->WndInsertAfter; - CbtCreateWnd->lpcs->x = CbtCreatewndExtra->Cs.x; - CbtCreateWnd->lpcs->y = CbtCreatewndExtra->Cs.y; - CbtCreateWnd->lpcs->cx = CbtCreatewndExtra->Cs.cx; - CbtCreateWnd->lpcs->cy = CbtCreatewndExtra->Cs.cy; - } + case HCBT_CREATEWND: + if (CbtCreatewndExtra) + {/* + The parameters could have been changed, include the coordinates + and dimensions of the window. We copy it back. + */ + CbtCreateWnd->hwndInsertAfter = CbtCreatewndExtra->WndInsertAfter; + CbtCreateWnd->lpcs->x = CbtCreatewndExtra->Cs.x; + CbtCreateWnd->lpcs->y = CbtCreatewndExtra->Cs.y; + CbtCreateWnd->lpcs->cx = CbtCreatewndExtra->Cs.cx; + CbtCreateWnd->lpcs->cy = CbtCreatewndExtra->Cs.cy; + } + break; + case HCBT_MOVESIZE: + if (Common->lParam && lParam) + { + RtlCopyMemory((PVOID) lParam, (PVOID) Common->lParam, sizeof(RECTL)); + } + break; } - break; + } // "The GetMsgProc hook procedure can examine or modify the message." case WH_GETMESSAGE: if (pMsg)