From 816777c79aed4f8041d53307751d28ba59e52a10 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 16 Jul 2008 16:12:44 +0000 Subject: [PATCH] - Fix CurrentWnd when it has a NULL, see Bug 3527. svn path=/trunk/; revision=34550 --- reactos/subsystems/win32/win32k/ntuser/vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/vis.c b/reactos/subsystems/win32/win32k/ntuser/vis.c index d89a1348097..50a1e2cf9ae 100644 --- a/reactos/subsystems/win32/win32k/ntuser/vis.c +++ b/reactos/subsystems/win32/win32k/ntuser/vis.c @@ -69,7 +69,7 @@ VIS_ComputeVisibleRegion( while (CurrentWindow) { CurrentWnd = CurrentWindow->Wnd; - if (!(CurrentWnd->Style & WS_VISIBLE)) + if (!(CurrentWnd) || !(CurrentWnd->Style & WS_VISIBLE)) { NtGdiDeleteObject(VisRgn); return NULL;