Author: tkreuzer
Date: Mon Jan 8 03:23:15 2007
New Revision: 25360
URL:
http://svn.reactos.org/svn/reactos?rev=25360&view=rev
Log:
implement SPI_SETNONCLIENTMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Mon Jan 8 03:23:15 2007
@@ -1282,6 +1282,12 @@
*((NONCLIENTMETRICSW*)pvParam) = pMetrics;
return TRUE;
}
+ case SPI_SETNONCLIENTMETRICS:
+ {
+ ASSERT(pvParam);
+ pMetrics = *((NONCLIENTMETRICSW*)pvParam);
+ return TRUE;
+ }
case SPI_GETFOCUSBORDERHEIGHT:
{
ASSERT(pvParam);
@@ -1445,10 +1451,11 @@
return( TRUE);
}
case SPI_GETNONCLIENTMETRICS:
+ case SPI_SETNONCLIENTMETRICS:
{
NONCLIENTMETRICSW metrics;
- Status = MmCopyFromCaller(&metrics.cbSize, pvParam, sizeof(UINT));
+ Status = MmCopyFromCaller(&metrics, pvParam, sizeof(NONCLIENTMETRICSW));
if(!NT_SUCCESS(Status))
{
SetLastNtError(Status);
@@ -1465,7 +1472,7 @@
return( FALSE);
}
- Status = MmCopyToCaller(pvParam, &metrics.cbSize,
sizeof(NONCLIENTMETRICSW));
+ Status = MmCopyToCaller(pvParam, &metrics, sizeof(NONCLIENTMETRICSW));
if(!NT_SUCCESS(Status))
{
SetLastNtError(Status);