From 2cf18f8b33f137df245becba967515ce2a6e2989 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 5 Jul 2012 22:10:03 +0000 Subject: [PATCH] - Fix build. svn path=/trunk/; revision=56840 --- reactos/win32ss/user/user32/windows/defwnd.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/win32ss/user/user32/windows/defwnd.c b/reactos/win32ss/user/user32/windows/defwnd.c index dc18842d2a0..4427bd964fc 100644 --- a/reactos/win32ss/user/user32/windows/defwnd.c +++ b/reactos/win32ss/user/user32/windows/defwnd.c @@ -1027,6 +1027,13 @@ User32DefWindowProc(HWND hWnd, LPARAM lParam, BOOL bUnicode) { + PWND pWnd = NULL; + if (hWnd) + { + pWnd = ValidateHwnd(hWnd); + if (!pWnd) return 0; + } + switch (Msg) { case WM_NCPAINT: @@ -1531,10 +1538,7 @@ User32DefWindowProc(HWND hWnd, case WM_ISACTIVEICON: { - PWND pWnd; BOOL isai; - pWnd = ValidateHwnd(hWnd); - if (!pWnd) return 0; isai = (pWnd->state & WNDS_ACTIVEFRAME) != 0; return isai; }