Skip to content

Commit d4b414c

Browse files
committed
[WIN32K] Fix a crash in win32knt:NTUserSystemParametersInfo tests. Brought to you by Peter Hater. CORE-11525
svn path=/trunk/; revision=72623
1 parent 8cb8d2d commit d4b414c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reactos/win32ss/user/ntuser/sysparams.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
10531053
return SpiSetBool(&gspv.bShowSounds, uiParam, KEY_SHOWSNDS, VAL_ON, fl);
10541054

10551055
case SPI_GETSTICKYKEYS:
1056-
if (uiParam != sizeof(STICKYKEYS))
1056+
if (uiParam != 0 && uiParam != sizeof(STICKYKEYS))
10571057
return 0;
10581058
return SpiGetEx(pvParam, &gspv.stickykeys, sizeof(STICKYKEYS), fl);
10591059

0 commit comments

Comments
 (0)