From 52f4e2b161b72af04e4870ec55692a3454d57fec Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Thu, 9 Jul 2009 14:56:59 +0000 Subject: [PATCH] Add an assertion. Bug #4670. svn path=/trunk/; revision=41831 --- reactos/subsystems/win32/win32k/ntuser/winpos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/winpos.c b/reactos/subsystems/win32/win32k/ntuser/winpos.c index cca1c449b5e..e5b278d73d1 100644 --- a/reactos/subsystems/win32/win32k/ntuser/winpos.c +++ b/reactos/subsystems/win32/win32k/ntuser/winpos.c @@ -733,6 +733,8 @@ WinPosInternalMoveWindow(PWINDOW_OBJECT Window, INT MoveX, INT MoveY) { PWINDOW_OBJECT Child; + ASSERT(Window != Window->FirstChild); + Window->Wnd->WindowRect.left += MoveX; Window->Wnd->WindowRect.right += MoveX; Window->Wnd->WindowRect.top += MoveY;