[MAIN]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 15 Dec 2009 19:06:23 +0000 (19:06 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 15 Dec 2009 19:06:23 +0000 (19:06 +0000)
Use UlongToPtr instead of casting.

svn path=/trunk/; revision=44608

reactos/dll/cpl/main/mouse.c

index d998fd7..c208fb2 100644 (file)
@@ -384,7 +384,7 @@ ButtonProc(IN HWND hwndDlg,
                 //SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
 
 #if (WINVER >= 0x0500)
-                SystemParametersInfo(SPI_SETMOUSECLICKLOCK, 0, (PVOID)pButtonData->g_ClickLockEnabled, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
+                SystemParametersInfo(SPI_SETMOUSECLICKLOCK, 0, UlongToPtr(pButtonData->g_ClickLockEnabled), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
                 if (pButtonData->g_ClickLockEnabled)
                    SystemParametersInfo(SPI_SETMOUSECLICKLOCKTIME, pButtonData->g_ClickLockTime, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
 #endif
@@ -1258,7 +1258,7 @@ PointerProc(IN HWND hwndDlg,
 //#if (WINVER >= 0x0500)
                 if (pPointerData->bOrigCursorShadow != pPointerData->bCursorShadow)
                 {
-                    SystemParametersInfo(SPI_SETCURSORSHADOW, 0, (PVOID)pPointerData->bCursorShadow, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
+                    SystemParametersInfo(SPI_SETCURSORSHADOW, 0, UlongToPtr(pPointerData->bCursorShadow), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
                     pPointerData->bOrigCursorShadow = pPointerData->bCursorShadow;
                 }
 //#endif
@@ -1267,7 +1267,7 @@ PointerProc(IN HWND hwndDlg,
             else if (lppsn->hdr.code == PSN_RESET)
             {
 //#if (WINVER >= 0x0500)
-                SystemParametersInfo(SPI_SETCURSORSHADOW, 0, (PVOID)pPointerData->bOrigCursorShadow, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
+                SystemParametersInfo(SPI_SETCURSORSHADOW, 0, UlongToPtr(pPointerData->bOrigCursorShadow), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
 //#endif
             }
             break;