Maarten Lankhorst m.b.lankhorst@gmail.com writes:
+static ULONG WINAPI MMDevEnum_Release(IMMDeviceEnumerator *iface) +{
- MMDevEnumImpl *This = (MMDevEnumImpl*)iface;
- LONG ref = InterlockedDecrement(&This->ref);
- TRACE("Refcount now %i\n", ref);
- return ref;
+}
Sounds like you want a static object here too...