dsound: Fix some pointer conversion warnings on 64-bit

Alexandre Julliard julliard at winehq.org
Mon Jul 20 04:43:52 CDT 2009


André Hentschel <nerv at dawncrow.de> writes:

> --- a/dlls/dsound/propset.c
> +++ b/dlls/dsound/propset.c
> @@ -109,7 +109,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
>  	    S(prop).Set = *guidPropSet;
>  	    S(prop).Id = dwPropID;
>  	    S(prop).Flags = 0;	/* unused */
> -	    S(prop).InstanceId = (ULONG)This->dsb->device;
> +	    S(prop).InstanceId = (ULONG_PTR)This->dsb->device;

If the destination is a DWORD changing the cast is only hiding the
problem.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list