Author: tkreuzer
Date: Tue Dec 15 20:06:23 2009
New Revision: 44608
URL:
http://svn.reactos.org/svn/reactos?rev=44608&view=rev
Log:
[MAIN]
Use UlongToPtr instead of casting.
Modified:
trunk/reactos/dll/cpl/main/mouse.c
Modified: trunk/reactos/dll/cpl/main/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=4…
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] Tue Dec 15 20:06:23 2009
@@ -384,7 +384,7 @@
//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 @@
//#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 @@
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;