Stop DCE_GetVisRect dereferencing a null wndPtr.
This commit is contained in:
parent
d6baf1bb1a
commit
9fd10756ad
|
@ -377,10 +377,9 @@ static BOOL DCE_GetVisRect( WND *wndPtr, BOOL clientArea, RECT *lprect )
|
|||
INT xoffset = lprect->left;
|
||||
INT yoffset = lprect->top;
|
||||
|
||||
while( !(wndPtr->flags & WIN_NATIVE) )
|
||||
while( !(wndPtr->flags & WIN_NATIVE) &&
|
||||
( wndPtr = WIN_LockWndPtr(wndPtr->parent)) )
|
||||
{
|
||||
wndPtr = WIN_LockWndPtr(wndPtr->parent);
|
||||
|
||||
if ( (wndPtr->dwStyle & (WS_ICONIC | WS_VISIBLE)) != WS_VISIBLE )
|
||||
{
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
|
|
Loading…
Reference in New Issue