mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:37:12 +00:00
[NtUser] Fix 3 new tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS
svn path=/trunk/; revision=72648
This commit is contained in:
parent
5d2a362dda
commit
0bbd5c592b
1 changed files with 18 additions and 3 deletions
|
@ -912,7 +912,12 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
|||
|
||||
case SPI_SETNONCLIENTMETRICS:
|
||||
{
|
||||
if (!SpiSet(&gspv.ncm, pvParam, sizeof(NONCLIENTMETRICSW), fl))
|
||||
LPNONCLIENTMETRICSW metrics = (LPNONCLIENTMETRICSW)pvParam;
|
||||
|
||||
/* Fixup user's structure size */
|
||||
metrics->cbSize = sizeof(NONCLIENTMETRICSW);
|
||||
|
||||
if (!SpiSet(&gspv.ncm, metrics, sizeof(NONCLIENTMETRICSW), fl))
|
||||
return 0;
|
||||
|
||||
if (fl & SPIF_UPDATEINIFILE)
|
||||
|
@ -949,7 +954,12 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
|||
|
||||
case SPI_SETMINIMIZEDMETRICS:
|
||||
{
|
||||
if (!SpiSet(&gspv.mm, pvParam, sizeof(MINIMIZEDMETRICS), fl))
|
||||
LPMINIMIZEDMETRICS metrics = (LPMINIMIZEDMETRICS)pvParam;
|
||||
|
||||
/* Fixup user's structure size */
|
||||
metrics->cbSize = sizeof(MINIMIZEDMETRICS);
|
||||
|
||||
if (!SpiSet(&gspv.mm, metrics, sizeof(MINIMIZEDMETRICS), fl))
|
||||
return 0;
|
||||
|
||||
gspv.mm.iWidth = max(0, gspv.mm.iWidth);
|
||||
|
@ -975,7 +985,12 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
|||
|
||||
case SPI_SETICONMETRICS:
|
||||
{
|
||||
if (!SpiSet(&gspv.im, pvParam, sizeof(ICONMETRICSW), fl))
|
||||
LPICONMETRICSW metrics = (LPICONMETRICSW)pvParam;
|
||||
|
||||
/* Fixup user's structure size */
|
||||
metrics->cbSize = sizeof(ICONMETRICSW);
|
||||
|
||||
if (!SpiSet(&gspv.im, metrics, sizeof(ICONMETRICSW), fl))
|
||||
return 0;
|
||||
|
||||
if (fl & SPIF_UPDATEINIFILE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue