- Fix CurrentWnd when it has a NULL, see Bug 3527.

svn path=/trunk/; revision=34550
This commit is contained in:
James Tabor 2008-07-16 16:12:44 +00:00
parent 2557cd7a1e
commit 816777c79a

View file

@ -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;