mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
Patch by johnyadams@hotmail.com: Some applications try to set a child as a parent. See bug 4789.
svn path=/trunk/; revision=43009
This commit is contained in:
parent
d67020065f
commit
f5617658a3
1 changed files with 7 additions and 0 deletions
|
@ -1022,6 +1022,13 @@ co_IntSetParent(PWINDOW_OBJECT Wnd, PWINDOW_OBJECT WndNewParent)
|
||||||
// hWnd = Wnd->hSelf;
|
// hWnd = Wnd->hSelf;
|
||||||
// hWndNewParent = WndNewParent->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
|
* Windows hides the window first, then shows it again
|
||||||
* including the WM_SHOWWINDOW messages and all
|
* including the WM_SHOWWINDOW messages and all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue