Commit 9fd10756 authored by Lawson Whitney's avatar Lawson Whitney Committed by Alexandre Julliard

Stop DCE_GetVisRect dereferencing a null wndPtr.

parent d6baf1bb
...@@ -377,10 +377,9 @@ static BOOL DCE_GetVisRect( WND *wndPtr, BOOL clientArea, RECT *lprect ) ...@@ -377,10 +377,9 @@ static BOOL DCE_GetVisRect( WND *wndPtr, BOOL clientArea, RECT *lprect )
INT xoffset = lprect->left; INT xoffset = lprect->left;
INT yoffset = lprect->top; 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 ) if ( (wndPtr->dwStyle & (WS_ICONIC | WS_VISIBLE)) != WS_VISIBLE )
{ {
WIN_ReleaseWndPtr(wndPtr); WIN_ReleaseWndPtr(wndPtr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment