From 533fa53c13fb22f8807b75bd73763bb841236256 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 20 Oct 2013 05:31:48 +0000 Subject: [PATCH] - Fix build. svn path=/trunk/; revision=60719 --- reactos/win32ss/user/ntuser/keyboard.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/win32ss/user/ntuser/keyboard.c b/reactos/win32ss/user/ntuser/keyboard.c index 2b2cf6260fd..28ac361b63d 100644 --- a/reactos/win32ss/user/ntuser/keyboard.c +++ b/reactos/win32ss/user/ntuser/keyboard.c @@ -904,6 +904,13 @@ ProcessKeyEvent(WORD wVk, WORD wScanCode, DWORD dwFlags, BOOL bInjected, DWORD d } if (Wnd) pti = Wnd->head.pti; + /* Init message */ + Msg.hwnd = Wnd ? UserHMGetHandle(Wnd) : NULL; + Msg.wParam = wFixedVk & 0xFF; /* Note: It's simplified by msg queue */ + Msg.lParam = MAKELPARAM(1, wScanCode); + Msg.time = dwTime; + Msg.pt = gpsi->ptCursor; + if ( Msg.message == WM_KEYDOWN || Msg.message == WM_SYSKEYDOWN ) { if ( (Msg.wParam == VK_SHIFT || @@ -916,13 +923,6 @@ ProcessKeyEvent(WORD wVk, WORD wScanCode, DWORD dwFlags, BOOL bInjected, DWORD d } } - /* Init message */ - Msg.hwnd = Wnd ? UserHMGetHandle(Wnd) : NULL; - Msg.wParam = wFixedVk & 0xFF; /* Note: It's simplified by msg queue */ - Msg.lParam = MAKELPARAM(1, wScanCode); - Msg.time = dwTime; - Msg.pt = gpsi->ptCursor; - /* If it is VK_PACKET, high word of wParam is used for wchar */ if (!bPacket) {