win32ss/user/ntuser/window.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/win32ss/user/ntuser/window.c b/win32ss/user/ntuser/window.c index d7877395159..67724169dab 100644 --- a/win32ss/user/ntuser/window.c +++ b/win32ss/user/ntuser/window.c @@ -2190,15 +2190,7 @@ co_UserCreateWindowEx(CREATESTRUCTW* Cs, Window->rcClient = Window->rcWindow; - /* Link the window */ - if (NULL != ParentWindow) - { - /* Link the window into the siblings list */ - if ((Cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD) - IntLinkHwnd(Window, HWND_BOTTOM); - else - IntLinkHwnd(Window, hwndInsertAfter); - } + if (!(Window->state2 & WNDS2_WIN31COMPAT)) { @@ -2226,6 +2218,16 @@ co_UserCreateWindowEx(CREATESTRUCTW* Cs, goto cleanup; } + /* Link the window */ + if (NULL != ParentWindow) + { + /* Link the window into the siblings list */ + if ((Cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD) + IntLinkHwnd(Window, HWND_BOTTOM); + else + IntLinkHwnd(Window, hwndInsertAfter); + } + /* Send the WM_NCCALCSIZE message */ { // RECT rc;