Author: akhaldi
Date: Thu Sep 8 20:18:41 2016
New Revision: 72623
URL:
http://svn.reactos.org/svn/reactos?rev=72623&view=rev
Log:
[WIN32K] Fix a crash in win32knt:NTUserSystemParametersInfo tests. Brought to you by Peter
Hater. CORE-11525
Modified:
trunk/reactos/win32ss/user/ntuser/sysparams.c
Modified: trunk/reactos/win32ss/user/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/syspar…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] Thu Sep 8 20:18:41 2016
@@ -1053,7 +1053,7 @@
return SpiSetBool(&gspv.bShowSounds, uiParam, KEY_SHOWSNDS, VAL_ON, fl);
case SPI_GETSTICKYKEYS:
- if (uiParam != sizeof(STICKYKEYS))
+ if (uiParam != 0 && uiParam != sizeof(STICKYKEYS))
return 0;
return SpiGetEx(pvParam, &gspv.stickykeys, sizeof(STICKYKEYS), fl);