From 9f29b6e41d8f69794428788c0bb9e503663f275b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 19 Oct 2004 08:25:25 +0000 Subject: [PATCH] Windows doesn't check uiParam for SPI_GETNONCLIENTMETRICS svn path=/trunk/; revision=11326 --- reactos/subsys/win32k/ntuser/misc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/misc.c b/reactos/subsys/win32k/ntuser/misc.c index f300b2f94cd..9b8b54c97c3 100644 --- a/reactos/subsys/win32k/ntuser/misc.c +++ b/reactos/subsys/win32k/ntuser/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.86 2004/09/28 15:02:30 weiden Exp $ +/* $Id: misc.c,v 1.87 2004/10/19 08:25:25 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -671,7 +671,7 @@ IntSystemParametersInfo( pMetrics.iSmCaptionHeight = NtUserGetSystemMetrics(SM_CYSMSIZE); pMetrics.iMenuWidth = NtUserGetSystemMetrics(SM_CXMENUSIZE); pMetrics.iMenuHeight = NtUserGetSystemMetrics(SM_CYMENUSIZE); - pMetrics.cbSize = sizeof(LPNONCLIENTMETRICSW); + pMetrics.cbSize = sizeof(NONCLIENTMETRICSW); bInitialized = TRUE; } @@ -1006,8 +1006,7 @@ NtUserSystemParametersInfo( SetLastNtError(Status); return FALSE; } - if((metrics.cbSize != sizeof(NONCLIENTMETRICSW)) || - (uiParam != sizeof(NONCLIENTMETRICSW))) + if(metrics.cbSize != sizeof(NONCLIENTMETRICSW)) { SetLastWin32Error(ERROR_INVALID_PARAMETER); return FALSE;