Commit d38f600f authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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

window to insert after are the same.
parent 505fadc8
......@@ -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 );
......
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