diff --git a/dlls/gdi/path.c b/dlls/gdi/path.c index 3b053a67179..7137f7b6c2d 100644 --- a/dlls/gdi/path.c +++ b/dlls/gdi/path.c @@ -123,7 +123,7 @@ static inline void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point) /* Performs a world-to-viewport transformation on the specified width. */ -static inline void INTERNAL_WSTODS(DC *dc, LONG *width) +static inline void INTERNAL_WSTODS(DC *dc, DWORD *width) { POINT pt[2]; pt[0].x = pt[0].y = 0; @@ -1478,7 +1478,7 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath) LOGPEN lp; GetObjectW(hOldPen, sizeof(LOGPEN), &lp); if(lp.lopnWidth.x > 0) - INTERNAL_WSTODS(dc, &lp.lopnWidth.x); + INTERNAL_WSTODS(dc, (DWORD*)&lp.lopnWidth.x); hNewPen = CreatePenIndirect(&lp); } SelectObject(dc->hSelf, hNewPen); diff --git a/dlls/user/sysparams.c b/dlls/user/sysparams.c index 44ef253774c..dc2733d7698 100644 --- a/dlls/user/sysparams.c +++ b/dlls/user/sysparams.c @@ -2262,7 +2262,7 @@ INT WINAPI GetSystemMetrics( INT index ) return 0; case SM_SWAPBUTTON: get_bool_param( SPI_SETMOUSEBUTTONSWAP_IDX, SPI_SETMOUSEBUTTONSWAP_REGKEY, - SPI_SETMOUSEBUTTONSWAP_VALNAME, &swap_buttons, &ret ); + SPI_SETMOUSEBUTTONSWAP_VALNAME, &swap_buttons, (BOOL*)&ret ); return ret; case SM_RESERVED1: case SM_RESERVED2: