[WIN32K] -Get the new value of SPI_SETFLATMENU from pvParam.
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 19:04:31 +0000 (19:04 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 19:04:31 +0000 (19:04 +0000)
svn path=/trunk/; revision=74253

reactos/win32ss/user/ntuser/sysparams.c

index 97a7b02..6865efd 100644 (file)
@@ -1627,7 +1627,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
             return SpiGetInt(pvParam, &gspv.bFlatMenu, fl);
 
         case SPI_SETFLATMENU:
             return SpiGetInt(pvParam, &gspv.bFlatMenu, fl);
 
         case SPI_SETFLATMENU:
-            return SpiSetBool(&gspv.bFlatMenu, uiParam, KEY_MOUSE, L"", fl);
+            return SpiSetBool(&gspv.bFlatMenu, (BOOL)pvParam, KEY_MOUSE, L"", fl);
 
         case SPI_GETDROPSHADOW:
             return SpiGetInt(pvParam, &gspv.bDropShadow, fl);
 
         case SPI_GETDROPSHADOW:
             return SpiGetInt(pvParam, &gspv.bDropShadow, fl);