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

Alexandre Julliard julliard at winehq.org
Wed Dec 24 13:18:33 CST 2008


Module: wine
Branch: master
Commit: 77ca32cf71903c090c157f3f9707050fcfe49dcb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=77ca32cf71903c090c157f3f9707050fcfe49dcb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec 24 11:19:59 2008 +0100

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

---

 dlls/user32/sysparams.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 9d72688..bd1b36c 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -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;
 




More information about the wine-cvs mailing list