diff --git a/win32ss/user/ntuser/window.c b/win32ss/user/ntuser/window.c index a740fcc11e8..9c56783a743 100644 --- a/win32ss/user/ntuser/window.c +++ b/win32ss/user/ntuser/window.c @@ -1040,8 +1040,13 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev) } if (Wnd == WndInsertAfter) - ERR("IntLinkHwnd -- Trying to link window 0x%p to itself!!\n", Wnd); - IntLinkWindow(Wnd, WndInsertAfter); + { + IntLinkWindow(Wnd, NULL); + } + else + { + IntLinkWindow(Wnd, WndInsertAfter); + } /* Fix the WS_EX_TOPMOST flag */ if (!(WndInsertAfter->ExStyle & WS_EX_TOPMOST))