[PATCH 1/3] mmdevapi: Add class factory

Alexandre Julliard julliard at winehq.org
Tue Dec 15 06:56:55 CST 2009


Maarten Lankhorst <m.b.lankhorst at gmail.com> writes:

> +static ULONG WINAPI MMCF_Release(LPCLASSFACTORY iface)
> +{
> +    IClassFactoryImpl *This = (IClassFactoryImpl *)iface;
> +    ULONG ref = InterlockedDecrement(&(This->ref));
> +    TRACE("(%p) ref was %d\n", This, ref + 1);
> +    /* static class, won't be freed */

You don't need a refcount then.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list