Alexandre Julliard : user32: Fix pointer cast warnings on 64-bit.

Alexandre Julliard julliard at winehq.org
Fri Jan 9 09:52:03 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan  8 17:28:04 2009 +0100

user32: Fix pointer cast warnings on 64-bit.

---

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

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 92dc912..8ecfed4 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -2394,7 +2394,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
                                SPI_SETFONTSMOOTHINGTYPE_VALNAME,
                                (LPBYTE)&pvParam, sizeof(UINT), REG_DWORD, fWinIni ))
         {
-            font_smoothing_type = (UINT)pvParam;
+            font_smoothing_type = PtrToUlong(pvParam);
             spi_loaded[spi_idx] = TRUE;
         }
         else
@@ -2424,7 +2424,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
                                SPI_SETFONTSMOOTHINGCONTRAST_VALNAME,
                                (LPBYTE)&pvParam, sizeof(UINT), REG_DWORD, fWinIni ))
         {
-            font_smoothing_contrast = (UINT)pvParam;
+            font_smoothing_contrast = PtrToUlong(pvParam);
             spi_loaded[spi_idx] = TRUE;
         }
         else
@@ -2458,7 +2458,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
                                SPI_SETFONTSMOOTHINGORIENTATION_VALNAME,
                                (LPBYTE)&pvParam, sizeof(UINT), REG_DWORD, fWinIni ))
         {
-            font_smoothing_orientation = (UINT)pvParam;
+            font_smoothing_orientation = PtrToUlong(pvParam);
             spi_loaded[spi_idx] = TRUE;
         }
         else




More information about the wine-cvs mailing list