From 15a47b9773a4a25a82084da500ca6471b79b0766 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 11 Sep 2008 11:02:04 -0700 Subject: [PATCH] Don't crash handling WM_SETICON with an invalid HWND. Fixes Coverity id 268. --- dlls/user32/defwnd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c index cb7888b..0bf932c 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -664,6 +664,7 @@ static LRESULT DEFWND_DefWinProc( HWND h HICON ret; WND *wndPtr = WIN_GetPtr( hwnd ); + if (!wndPtr) return 0; switch(wParam) { case ICON_SMALL: -- 1.4.1