mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 13:14:41 +00:00
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
This commit is contained in:
parent
78bad70f56
commit
a51baa3efc
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -688,7 +688,7 @@ WinPosFixupFlags(WINDOWPOS *WinPos, PWINDOW_OBJECT Window)
|
||||||
(WinPos->hwndInsertAfter != HWND_BOTTOM))
|
(WinPos->hwndInsertAfter != HWND_BOTTOM))
|
||||||
{
|
{
|
||||||
if (NtUserGetAncestor(WinPos->hwndInsertAfter, GA_PARENT) !=
|
if (NtUserGetAncestor(WinPos->hwndInsertAfter, GA_PARENT) !=
|
||||||
Window->Parent)
|
Window->Parent->Self)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -817,7 +817,7 @@ WinPosSetWindowPos(HWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx,
|
||||||
if (WinPos.hwndInsertAfter == HWND_TOP)
|
if (WinPos.hwndInsertAfter == HWND_TOP)
|
||||||
InsertAfterWindow = NULL;
|
InsertAfterWindow = NULL;
|
||||||
else if (WinPos.hwndInsertAfter == HWND_BOTTOM)
|
else if (WinPos.hwndInsertAfter == HWND_BOTTOM)
|
||||||
InsertAfterWindow = ParentWindow->LastChild;
|
InsertAfterWindow = IntGetWindowObject(ParentWindow->LastChild->Self);
|
||||||
else
|
else
|
||||||
InsertAfterWindow = IntGetWindowObject(WinPos.hwndInsertAfter);
|
InsertAfterWindow = IntGetWindowObject(WinPos.hwndInsertAfter);
|
||||||
/* Do nothing if hwndInsertAfter is HWND_BOTTOM and Window is already
|
/* Do nothing if hwndInsertAfter is HWND_BOTTOM and Window is already
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue