mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:12:57 +00:00
NtUserDispatchMessage() shouldn't allow calling the window proc if the window doesn't belong to the thread
svn path=/trunk/; revision=7072
This commit is contained in:
parent
6dda6e7ca6
commit
9d372b138d
1 changed files with 7 additions and 2 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: message.c,v 1.37 2003/12/14 11:36:43 gvg Exp $
|
/* $Id: message.c,v 1.38 2003/12/14 23:52:54 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -101,7 +101,12 @@ NtUserDispatchMessage(CONST MSG* UnsafeMsg)
|
||||||
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if(WindowObject->OwnerThread != PsGetCurrentThread())
|
||||||
|
{
|
||||||
|
IntReleaseWindowObject(WindowObject);
|
||||||
|
DPRINT1("Window doesn't belong to the calling thread!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
/* FIXME: Call hook procedures. */
|
/* FIXME: Call hook procedures. */
|
||||||
|
|
||||||
/* Call the window procedure. */
|
/* Call the window procedure. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue