mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Everything must come to an end, even the desktop window. Fixes bug 805.
svn path=/trunk/; revision=18534
This commit is contained in:
parent
cb9fb3aeb7
commit
606c64b199
1 changed files with 3 additions and 2 deletions
|
@ -2035,7 +2035,7 @@ BOOLEAN FASTCALL co_UserDestroyWindow(PWINDOW_OBJECT Window)
|
|||
ASSERT_REFS_CO(Window); //fixme: temp hack?
|
||||
|
||||
/* Check for owner thread and desktop window */
|
||||
if ((Window->OwnerThread != PsGetCurrentThread()) || IntIsDesktopWindow(Window))
|
||||
if ((Window->OwnerThread != PsGetCurrentThread()))
|
||||
{
|
||||
SetLastWin32Error(ERROR_ACCESS_DENIED);
|
||||
return FALSE;
|
||||
|
@ -2103,7 +2103,8 @@ BOOLEAN FASTCALL co_UserDestroyWindow(PWINDOW_OBJECT Window)
|
|||
HWND *ChildHandle;
|
||||
PWINDOW_OBJECT Child, Desktop;
|
||||
|
||||
Desktop = UserGetWindowObject(IntGetDesktopWindow());
|
||||
Desktop = IntIsDesktopWindow(Window) ? Window :
|
||||
UserGetWindowObject(IntGetDesktopWindow());
|
||||
Children = IntWinListChildren(Desktop);
|
||||
|
||||
if (Children)
|
||||
|
|
Loading…
Reference in a new issue