Commit 77ca32cf authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Fix SPI_SETMOUSESPEED handling, the parameter is not a pointer.

parent 0fb3cb93
......@@ -2170,11 +2170,10 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break;
case SPI_SETMOUSESPEED: /* 113 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
if (!pvParam) return FALSE;
ret = set_uint_param( SPI_SETMOUSESPEED_IDX,
SPI_SETMOUSESPEED_REGKEY,
SPI_SETMOUSESPEED_VALNAME,
&mouse_sensitivity, *(UINT *) pvParam, fWinIni );
&mouse_sensitivity, PtrToInt(pvParam), fWinIni );
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment