Avoid problems during changing the Z-order if the window and the

window to insert after are the same.
This commit is contained in:
Rein Klazes 2000-01-08 22:22:28 +00:00 committed by Alexandre Julliard
parent 505fadc8e7
commit d38f600f69
1 changed files with 1 additions and 1 deletions

View File

@ -2636,7 +2636,7 @@ Pos: /* -----------------------------------------------------------------------
wvrFlags = SWP_DoNCCalcSize( wndPtr, &winpos, &newWindowRect, &newClientRect, flags );
if(!(winpos.flags & SWP_NOZORDER))
if(!(winpos.flags & SWP_NOZORDER) && winpos.hwnd != hwndInsertAfter)
{
if ( WIN_UnlinkWindow( winpos.hwnd ) )
WIN_LinkWindow( winpos.hwnd, hwndInsertAfter );