reactos/subsys/win32k/ntuser
diff -u -r1.56 -r1.57
--- misc.c 2 Apr 2004 20:51:08 -0000 1.56
+++ misc.c 2 Apr 2004 21:03:25 -0000 1.57
@@ -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 @@
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));