[PATCH 1/3] mmdevapi: Add class factory

Maarten Lankhorst m.b.lankhorst at gmail.com
Tue Dec 15 08:31:56 CST 2009


Hi Alexandre,

2009/12/15 Alexandre Julliard <julliard at winehq.org>:
> 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.
I just copied the dsound class factory code, if you want I can send
patches for both, figured that copying existing code was the best way.
But I suppose I' ll send a patch for both then.

Cheers,
Maarten.



More information about the wine-devel mailing list