Commit 79b29158 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix gcc 4.0 warnings.

parent dbfac2ee
......@@ -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);
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment