Fixed rails set_caretwidth

This commit is contained in:
Armin Novak 2019-05-09 12:28:27 +02:00
parent 2cc714a57d
commit a2834ae233
2 changed files with 10 additions and 7 deletions

View File

@ -421,7 +421,10 @@ UINT rail_write_client_sysparam_order(railPlugin* rail, wStream* s,
if ((rail->channelFlags & TS_RAIL_ORDER_HANDSHAKE_EX_FLAGS_EXTENDED_SPI_SUPPORTED) == 0)
return ERROR_INVALID_DATA;
error = rail_write_high_contrast(s, &sysparam->caretWidth);
if (sysparam->caretWidth < 0x0001)
return ERROR_INVALID_DATA;
Stream_Write_UINT32(s, sysparam->caretWidth);
break;
case SPI_SETSTICKYKEYS:

View File

@ -318,7 +318,7 @@ struct _RAIL_SYSPARAM_ORDER
RECTANGLE_16 displayChange;
RECTANGLE_16 taskbarPos;
RAIL_HIGH_CONTRAST highContrast;
RAIL_HIGH_CONTRAST caretWidth;
UINT32 caretWidth;
UINT32 stickyKeys;
UINT32 toggleKeys;
TS_FILTERKEYS filterKeys;