https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d794996217d1d0cbd94876f89babf3bc4f36b6a6
commit d794996217d1d0cbd94876f89babf3bc4f36b6a6 Author: Jose Carlos Jesus <zecarlos1...@hotmail.com> AuthorDate: Fri Sep 2 19:50:11 2022 +0100 Commit: Stanislav Motylkov <x86co...@gmail.com> CommitDate: Wed Oct 12 22:12:12 2022 +0300 [NTUSER] Call SpiSetDWord when processing SPI_SETCARETWIDTH message This corresponds to REG_DWORD type of CaretWidth value. CORE-18151 --- win32ss/user/ntuser/sysparams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/user/ntuser/sysparams.c b/win32ss/user/ntuser/sysparams.c index 0e68f25ced0..7b1f2bf895a 100644 --- a/win32ss/user/ntuser/sysparams.c +++ b/win32ss/user/ntuser/sysparams.c @@ -1740,7 +1740,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl) return SpiGetInt(pvParam, &gspv.dwCaretWidth, fl); case SPI_SETCARETWIDTH: - return SpiSetInt(&gspv.dwCaretWidth, uiParam, KEY_MOUSE, L"", fl); + return SpiSetDWord(&gspv.dwCaretWidth, PtrToUlong(pvParam), KEY_DESKTOP, VAL_CARETWIDTH, fl); case SPI_GETMOUSECLICKLOCKTIME: return SpiGetInt(pvParam, &gspv.dwMouseClickLockTime, fl);