quartz: update ICOM_THIS_MULTI to follow the new COM standard

Jacek Caban jacek at codeweavers.com
Fri Mar 30 11:08:06 CDT 2012


On 03/30/12 17:55, Aric Stewart wrote:
> diff --git a/dlls/quartz/quartz_private.h b/dlls/quartz/quartz_private.h
> index 35cd52b..d2f680c 100644
> --- a/dlls/quartz/quartz_private.h
> +++ b/dlls/quartz/quartz_private.h
> @@ -38,7 +38,7 @@
>  #define BYTES_FROM_MEDIATIME(time) SEC_FROM_MEDIATIME(time)
>  #define MSEC_FROM_MEDIATIME(time) ((time) / 10000)
>  
> -#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
> +#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=CONTAINING_RECORD(iface, impl, field)

These should disappear once the clean up of affected code is done.

Cheers,
Jacek



More information about the wine-devel mailing list