mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
[MAIN]
Use UlongToPtr instead of casting. svn path=/trunk/; revision=44608
This commit is contained in:
parent
068b10820f
commit
50a510c96d
|
@ -384,7 +384,7 @@ ButtonProc(IN HWND hwndDlg,
|
||||||
//SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
|
//SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
|
||||||
|
|
||||||
#if (WINVER >= 0x0500)
|
#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)
|
if (pButtonData->g_ClickLockEnabled)
|
||||||
SystemParametersInfo(SPI_SETMOUSECLICKLOCKTIME, pButtonData->g_ClickLockTime, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
|
SystemParametersInfo(SPI_SETMOUSECLICKLOCKTIME, pButtonData->g_ClickLockTime, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1258,7 +1258,7 @@ PointerProc(IN HWND hwndDlg,
|
||||||
//#if (WINVER >= 0x0500)
|
//#if (WINVER >= 0x0500)
|
||||||
if (pPointerData->bOrigCursorShadow != pPointerData->bCursorShadow)
|
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;
|
pPointerData->bOrigCursorShadow = pPointerData->bCursorShadow;
|
||||||
}
|
}
|
||||||
//#endif
|
//#endif
|
||||||
|
@ -1267,7 +1267,7 @@ PointerProc(IN HWND hwndDlg,
|
||||||
else if (lppsn->hdr.code == PSN_RESET)
|
else if (lppsn->hdr.code == PSN_RESET)
|
||||||
{
|
{
|
||||||
//#if (WINVER >= 0x0500)
|
//#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
|
//#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue