Author: jimtabor
Date: Wed Jul 16 11:12:44 2008
New Revision: 34550
URL:
http://svn.reactos.org/svn/reactos?rev=34550&view=rev
Log:
- Fix CurrentWnd when it has a NULL, see Bug 3527.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/vis.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/vis.c [iso-8859-1] Wed Jul 16 11:12:44
2008
@@ -69,7 +69,7 @@
while (CurrentWindow)
{
CurrentWnd = CurrentWindow->Wnd;
- if (!(CurrentWnd->Style & WS_VISIBLE))
+ if (!(CurrentWnd) || !(CurrentWnd->Style & WS_VISIBLE))
{
NtGdiDeleteObject(VisRgn);
return NULL;