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