[WIN32K] Fix a crash in win32knt:NTUserSystemParametersInfo tests. Brought to you by Peter Hater. CORE-11525

svn path=/trunk/; revision=72623
This commit is contained in:
Amine Khaldi 2016-09-08 20:18:41 +00:00
parent 8cb8d2d156
commit d4b414cc35

View file

@ -1053,7 +1053,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
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);