mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Windows doesn't check uiParam for SPI_GETNONCLIENTMETRICS
svn path=/trunk/; revision=11326
This commit is contained in:
parent
5d5362aca5
commit
9f29b6e41d
1 changed files with 3 additions and 4 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -671,7 +671,7 @@ IntSystemParametersInfo(
|
||||||
pMetrics.iSmCaptionHeight = NtUserGetSystemMetrics(SM_CYSMSIZE);
|
pMetrics.iSmCaptionHeight = NtUserGetSystemMetrics(SM_CYSMSIZE);
|
||||||
pMetrics.iMenuWidth = NtUserGetSystemMetrics(SM_CXMENUSIZE);
|
pMetrics.iMenuWidth = NtUserGetSystemMetrics(SM_CXMENUSIZE);
|
||||||
pMetrics.iMenuHeight = NtUserGetSystemMetrics(SM_CYMENUSIZE);
|
pMetrics.iMenuHeight = NtUserGetSystemMetrics(SM_CYMENUSIZE);
|
||||||
pMetrics.cbSize = sizeof(LPNONCLIENTMETRICSW);
|
pMetrics.cbSize = sizeof(NONCLIENTMETRICSW);
|
||||||
|
|
||||||
bInitialized = TRUE;
|
bInitialized = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -1006,8 +1006,7 @@ NtUserSystemParametersInfo(
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if((metrics.cbSize != sizeof(NONCLIENTMETRICSW)) ||
|
if(metrics.cbSize != sizeof(NONCLIENTMETRICSW))
|
||||||
(uiParam != sizeof(NONCLIENTMETRICSW)))
|
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue