Commit 0d86ffed authored by Dominik Strasser's avatar Dominik Strasser Committed by Alexandre Julliard

Avoid crash at end of list.

parent db490e5e
......@@ -2195,7 +2195,7 @@ static HWND SWP_DoOwnedPopups(WND* pDesktop, WND* wndPtr, HWND hwndInsertAfter,
if( hwndInsertAfter != HWND_TOP )
{
while( w != wndPtr->owner )
while( w && w != wndPtr->owner )
{
if (w != wndPtr) hwndLocalPrev = w->hwndSelf;
if( hwndLocalPrev == hwndInsertAfter ) break;
......
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