mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
deny destroying a window that does not belong to the calling thread
svn path=/trunk/; revision=7090
This commit is contained in:
parent
23dc27f809
commit
8ca785b781
1 changed files with 3 additions and 3 deletions
|
@ -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: window.c,v 1.163 2003/12/14 17:59:16 navaraf Exp $
|
||||
/* $Id: window.c,v 1.164 2003/12/16 18:14:39 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1466,8 +1466,8 @@ NtUserDestroyWindow(HWND Wnd)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check for desktop window */
|
||||
if (IntIsDesktopWindow(Window))
|
||||
/* Check for owner thread and desktop window */
|
||||
if ((Window->OwnerThread != PsGetCurrentThread()) || IntIsDesktopWindow(Window))
|
||||
{
|
||||
IntReleaseWindowObject(Window);
|
||||
SetLastWin32Error(ERROR_ACCESS_DENIED);
|
||||
|
|
Loading…
Reference in a new issue