mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
check parameter in GetWindowInfo()
svn path=/trunk/; revision=8954
This commit is contained in:
parent
6491031cc2
commit
1c5f3e5775
1 changed files with 8 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue