mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[WIN32K:NTUSER] Add ASSERT() on "linking window to itself" (#4749)
Addendum to ee0511b
(0.4.10-dev-323).
CORE-18132
This commit is contained in:
parent
5e4c6ae983
commit
38560761ce
1 changed files with 11 additions and 3 deletions
|
@ -943,7 +943,8 @@ IntLinkWindow(
|
|||
{
|
||||
if (Wnd == WndInsertAfter)
|
||||
{
|
||||
ERR("IntLinkWindow -- Trying to link window 0x%p to itself!!\n", Wnd);
|
||||
ERR("Trying to link window 0x%p to itself\n", Wnd);
|
||||
ASSERT(WndInsertAfter != Wnd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1046,8 +1047,15 @@ 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);
|
||||
{
|
||||
ERR("Trying to link window 0x%p to itself\n", Wnd);
|
||||
ASSERT(WndInsertAfter != Wnd);
|
||||
// FIXME: IntUnlinkWindow(Wnd) was already called. Continuing as is seems wrong!
|
||||
}
|
||||
else
|
||||
{
|
||||
IntLinkWindow(Wnd, WndInsertAfter);
|
||||
}
|
||||
|
||||
/* Fix the WS_EX_TOPMOST flag */
|
||||
if (!(WndInsertAfter->ExStyle & WS_EX_TOPMOST))
|
||||
|
|
Loading…
Reference in a new issue