From 2775a6ad38f9f66d71420f340796bc763992c0d7 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 11 Sep 2008 11:03:23 -0700 Subject: [PATCH] Don't crash handling WM_GETICON with an invalid HWND. Fixes Coverity id 269. --- 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 0bf932c..58d2374 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -694,6 +694,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