[NTUSER] Call SpiSetDWord when processing SPI_SETCARETWIDTH message

This corresponds to REG_DWORD type of CaretWidth value.

CORE-18151
This commit is contained in:
Jose Carlos Jesus 2022-09-02 19:50:11 +01:00 committed by Stanislav Motylkov
parent 0dd6aa6ca5
commit d794996217
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -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);