Added a NULL pointer check within DCE_AddClipRects function.
This commit is contained in:
parent
3332bd068e
commit
fbd0d25cf8
@ -443,7 +443,7 @@ static BOOL DCE_AddClipRects( WND *pWndStart, WND *pWndEnd,
|
|||||||
if( pWndStart->pDriver->pIsSelfClipping( pWndStart ) )
|
if( pWndStart->pDriver->pIsSelfClipping( pWndStart ) )
|
||||||
return TRUE; /* The driver itself will do the clipping */
|
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;
|
if( !(pWndStart->dwStyle & WS_VISIBLE) ) continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user