Author: jimtabor Date: Mon Sep 7 00:20:34 2009 New Revision: 43009
URL: http://svn.reactos.org/svn/reactos?rev=43009&view=rev Log: Patch by johnyadams@hotmail.com: Some applications try to set a child as a parent. See bug 4789.
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Mon Sep 7 00:20:34 2009 @@ -1021,6 +1021,13 @@
// hWnd = Wnd->hSelf; // hWndNewParent = WndNewParent->hSelf; + + /* Some applications try to set a child as a parent */ + if (IntIsChildWindow(Wnd, WndNewParent)) + { + SetLastWin32Error( ERROR_INVALID_PARAMETER ); + return 0; + }
/* * Windows hides the window first, then shows it again