From fbd0d25cf8bc99b8bee16ca2ad0d905b5051c90a Mon Sep 17 00:00:00 2001 From: Noomen Hamza Date: Thu, 15 Jun 2000 00:12:12 +0000 Subject: [PATCH] Added a NULL pointer check within DCE_AddClipRects function. --- windows/dce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/dce.c b/windows/dce.c index 9fef360a44d..0ab4c73b22e 100644 --- a/windows/dce.c +++ b/windows/dce.c @@ -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; -- 2.11.4.GIT