WA_* is stored in wParam, not lParam

svn path=/trunk/; revision=7582
This commit is contained in:
Gé van Geldorp 2004-01-12 20:38:59 +00:00
parent fb7c647040
commit 117693c338

View file

@ -1,4 +1,4 @@
/* $Id: defwnd.c,v 1.120 2003/12/28 16:31:44 weiden Exp $ /* $Id: defwnd.c,v 1.121 2004/01/12 20:38:59 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
@ -1128,7 +1128,7 @@ User32DefWindowProc(HWND hWnd,
case WM_ACTIVATE: case WM_ACTIVATE:
{ {
/* Check if the window is minimized. */ /* Check if the window is minimized. */
if (LOWORD(lParam) != WA_INACTIVE && if (LOWORD(wParam) != WA_INACTIVE &&
!(GetWindowLongW(hWnd, GWL_STYLE) & WS_MINIMIZE)) !(GetWindowLongW(hWnd, GWL_STYLE) & WS_MINIMIZE))
{ {
SetFocus(hWnd); SetFocus(hWnd);