Avoid crash at end of list.

This commit is contained in:
Dominik Strasser 2001-02-28 21:40:19 +00:00 committed by Alexandre Julliard
parent db490e5e34
commit 0d86ffeda2
1 changed files with 1 additions and 1 deletions

View File

@ -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;