check parameter in GetWindowInfo()

svn path=/trunk/; revision=8954
This commit is contained in:
Thomas Bluemel 2004-04-02 21:03:25 +00:00
parent 6491031cc2
commit 1c5f3e5775

View file

@ -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));