Alexandre Julliard : user32: Fix pointer cast warnings on 64-bit.
Module: wine Branch: master Commit: d1613f60c281c8fef10310794470f546a4495422 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d1613f60c281c8fef103107944... Author: Alexandre Julliard <julliard(a)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
participants (1)
-
Alexandre Julliard