https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1793dcc864762de0417c3…
commit 1793dcc864762de0417c3fcb61a920a2386c4096
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Dec 9 10:50:04 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Dec 9 10:50:04 2019 +0900
[NTUSER] Improve loading settings (SystemParamtersInfo) (#2139)
Fix SPI_GETSCREENSAVETIMEOUT, SPI_GETKEYBOARDSPEED and SPI_GETKEYBOARDDELAY values.
CORE-16547
---
win32ss/user/ntuser/sysparams.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/sysparams.c b/win32ss/user/ntuser/sysparams.c
index f07db3aab24..4fa4c3d4918 100644
--- a/win32ss/user/ntuser/sysparams.c
+++ b/win32ss/user/ntuser/sysparams.c
@@ -153,7 +153,7 @@ SpiLoadTimeOut(VOID)
return 0;
}
if (wcslen(szApplicationName) == 0) return 0;
- return SpiLoadInt(KEY_DESKTOP, VAL_SCRTO, 0);
+ return SpiLoadInt(KEY_DESKTOP, VAL_SCRTO, 600);
}
static
@@ -245,6 +245,10 @@ SpiUpdatePerUserSystemParameters(VOID)
gspv.iMouseHoverWidth = SpiLoadMouse(VAL_HOVERWIDTH, 4);
gspv.iMouseHoverHeight = SpiLoadMouse(VAL_HOVERHEIGHT, 4);
+ /* Load keyboard settings */
+ gspv.dwKbdSpeed = SpiLoadInt(KEY_KBD, VAL_KBDSPD, 31);
+ gspv.iKbdDelay = SpiLoadInt(KEY_KBD, VAL_KBDDELAY, 1);
+
/* Load NONCLIENTMETRICS */
gspv.ncm.cbSize = sizeof(NONCLIENTMETRICSW);
gspv.ncm.iBorderWidth = SpiLoadMetric(VAL_BORDER, 1);