From 1c5f3e5775434092f27f760b849e869b22590757 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 2 Apr 2004 21:03:25 +0000 Subject: [PATCH] check parameter in GetWindowInfo() svn path=/trunk/; revision=8954 --- reactos/subsys/win32k/ntuser/misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/misc.c b/reactos/subsys/win32k/ntuser/misc.c index 6c37651c88f..385670048d6 100644 --- a/reactos/subsys/win32k/ntuser/misc.c +++ b/reactos/subsys/win32k/ntuser/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.56 2004/04/02 20:51:08 weiden Exp $ +/* $Id: misc.c,v 1.57 2004/04/02 21:03:25 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -389,6 +389,13 @@ NtUserCallTwoParam( return FALSE; } + if(wi.cbSize != sizeof(WINDOWINFO)) + { + IntReleaseWindowObject(WindowObject); + SetLastWin32Error(ERROR_INVALID_PARAMETER); + return FALSE; + } + if((Ret = (DWORD)IntGetWindowInfo(WindowObject, &wi))) { Status = MmCopyToCaller((PVOID)Param2, &wi, sizeof(WINDOWINFO));