Michael Stefaniuc : dmloader: Pass the object to the IDirectMusicContainer_Release helper.
Alexandre Julliard
julliard at winehq.org
Thu Mar 13 14:40:34 CDT 2014
Module: wine
Branch: master
Commit: c600be1ff50cdcb1fbdf4757dac3a710a694ee8b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c600be1ff50cdcb1fbdf4757dac3a710a694ee8b
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Mar 12 23:07:09 2014 +0100
dmloader: Pass the object to the IDirectMusicContainer_Release helper.
---
dlls/dmloader/container.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dmloader/container.c b/dlls/dmloader/container.c
index 871c8b0..f53a074 100644
--- a/dlls/dmloader/container.c
+++ b/dlls/dmloader/container.c
@@ -36,8 +36,8 @@ static ULONG WINAPI IDirectMusicContainerImpl_IPersistStream_AddRef (LPPERSISTST
*/
/* IUnknown/IDirectMusicContainer part: */
-static HRESULT DMUSIC_DestroyDirectMusicContainerImpl (LPDIRECTMUSICCONTAINER iface) {
- ICOM_THIS_MULTI(IDirectMusicContainerImpl, ContainerVtbl, iface);
+static HRESULT destroy_dmcontainer(IDirectMusicContainerImpl *This)
+{
LPDIRECTMUSICLOADER pLoader;
LPDIRECTMUSICGETLOADER pGetLoader;
struct list *pEntry;
@@ -108,7 +108,7 @@ static ULONG WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_Release (LPD
DWORD dwRef = InterlockedDecrement (&This->dwRef);
TRACE("(%p): ReleaseRef to %d\n", This, dwRef);
if (dwRef == 0) {
- DMUSIC_DestroyDirectMusicContainerImpl (iface);
+ destroy_dmcontainer(This);
HeapFree(GetProcessHeap(), 0, This);
}
More information about the wine-cvs
mailing list