Commit 6effb230 authored by Noomen Hamza's avatar Noomen Hamza Committed by Alexandre Julliard

Made SetWindowPos handle the case when inserting a window after itself

(don't need to change the Zorder).
parent d0dfcde4
......@@ -2582,7 +2582,10 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter,
WIN_ReleaseWndPtr(wnd);
goto END;
}
if( wnd->next == wndPtr ) flags |= SWP_NOZORDER;
/* don't need to change the Zorder of hwnd if it's already inserted
* after hwndInsertAfter or when inserting hwnd after itself.
*/
if(( wnd->next == wndPtr ) || (hwnd == hwndInsertAfter)) flags |= SWP_NOZORDER;
}
WIN_ReleaseWndPtr(wnd);
}
......
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