gdi32: Fixed a couple of Win64 pointer cast compiler warnings

Alexandre Julliard julliard at winehq.org
Fri Feb 13 07:41:18 CST 2009


Eddie Leung <eddie.leung.2009 at anderson.ucla.edu> writes:

> diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
> index c8a3c4c..44a9a6f 100644
> --- a/dlls/gdi32/dc.c
> +++ b/dlls/gdi32/dc.c
> @@ -1433,7 +1433,7 @@ static BOOL WINAPI call_dc_hook16( HDC hdc, WORD code, DWORD_PTR data, LPARAM lP
>          args[2] = LOWORD(data);
>          args[1] = HIWORD(lParam);
>          args[0] = LOWORD(lParam);
> -        WOWCallback16Ex( (DWORD)dc->hookProc, WCB16_PASCAL, sizeof(args), args, &ret );
> +        WOWCallback16Ex( (DWORD_PTR)dc->hookProc, WCB16_PASCAL, sizeof(args), args, &ret );

The correct fix for these things is to move them to a 16-bit file that
doesn't get compiled at all for Win64. It doesn't make sense to call
WOWCallback16 in 64-bit mode.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list