From a51baa3efc786d9003acf4c3ee8277ca81986183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 15 Jan 2004 21:02:39 +0000 Subject: [PATCH] Patch by Filip Navara. - Fixed foolish comparing of window handle and pointer. - Fixed dereferencing of not referenced window in WinPosSetWindowPos. svn path=/trunk/; revision=7662 --- reactos/subsys/win32k/ntuser/winpos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/winpos.c b/reactos/subsys/win32k/ntuser/winpos.c index c7f1e03417d..71acc9fd3af 100644 --- a/reactos/subsys/win32k/ntuser/winpos.c +++ b/reactos/subsys/win32k/ntuser/winpos.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: winpos.c,v 1.79 2004/01/12 22:26:00 gvg Exp $ +/* $Id: winpos.c,v 1.80 2004/01/15 21:02:39 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -688,7 +688,7 @@ WinPosFixupFlags(WINDOWPOS *WinPos, PWINDOW_OBJECT Window) (WinPos->hwndInsertAfter != HWND_BOTTOM)) { if (NtUserGetAncestor(WinPos->hwndInsertAfter, GA_PARENT) != - Window->Parent) + Window->Parent->Self) { return FALSE; } @@ -817,7 +817,7 @@ WinPosSetWindowPos(HWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx, if (WinPos.hwndInsertAfter == HWND_TOP) InsertAfterWindow = NULL; else if (WinPos.hwndInsertAfter == HWND_BOTTOM) - InsertAfterWindow = ParentWindow->LastChild; + InsertAfterWindow = IntGetWindowObject(ParentWindow->LastChild->Self); else InsertAfterWindow = IntGetWindowObject(WinPos.hwndInsertAfter); /* Do nothing if hwndInsertAfter is HWND_BOTTOM and Window is already