Added a NULL pointer check within DCE_AddClipRects function.

This commit is contained in:
Noomen Hamza 2000-06-15 00:12:12 +00:00 committed by Alexandre Julliard
parent 3332bd068e
commit fbd0d25cf8
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ static BOOL DCE_AddClipRects( WND *pWndStart, WND *pWndEnd,
if( pWndStart->pDriver->pIsSelfClipping( pWndStart ) )
return TRUE; /* The driver itself will do the clipping */
for (WIN_LockWndPtr(pWndStart); pWndStart != pWndEnd; WIN_UpdateWndPtr(&pWndStart,pWndStart->next))
for (WIN_LockWndPtr(pWndStart); (pWndStart && (pWndStart != pWndEnd)); WIN_UpdateWndPtr(&pWndStart,pWndStart->next))
{
if( !(pWndStart->dwStyle & WS_VISIBLE) ) continue;