From f4371386e45f69081c2afe6d381e8e155c94e372 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 12 May 2004 15:28:01 +0000 Subject: [PATCH] GetWindowInfo() doesn't check the cbSize parameter svn path=/trunk/; revision=9358 --- reactos/subsys/win32k/ntuser/misc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/misc.c b/reactos/subsys/win32k/ntuser/misc.c index 002efecf054..ce205675f36 100644 --- a/reactos/subsys/win32k/ntuser/misc.c +++ b/reactos/subsys/win32k/ntuser/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.71 2004/05/10 17:07:18 weiden Exp $ +/* $Id: misc.c,v 1.72 2004/05/12 15:28:01 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -428,6 +428,11 @@ NtUserCallTwoParam( return FALSE; } +#if 0 + /* + * According to WINE, Windows' doesn't check the cbSize field + */ + Status = MmCopyFromCaller(&wi.cbSize, (PVOID)Param2, sizeof(wi.cbSize)); if(!NT_SUCCESS(Status)) { @@ -442,6 +447,7 @@ NtUserCallTwoParam( SetLastWin32Error(ERROR_INVALID_PARAMETER); return FALSE; } +#endif if((Ret = (DWORD)IntGetWindowInfo(WindowObject, &wi))) {