Michael Stefaniuc : dmband: Store the iface instead of the COM object in _DMUS_PRIVATE_BAND.

Alexandre Julliard julliard at winehq.org
Thu Jan 30 13:25:26 CST 2014


Module: wine
Branch: master
Commit: 0d94b4b0f03be4999fba57009ceb03b75d853c9d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0d94b4b0f03be4999fba57009ceb03b75d853c9d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jan 30 01:02:57 2014 +0100

dmband: Store the iface instead of the COM object in _DMUS_PRIVATE_BAND.

---

 dlls/dmband/bandtrack.c      |    2 +-
 dlls/dmband/dmband_private.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dmband/bandtrack.c b/dlls/dmband/bandtrack.c
index 8be6b29..459c158 100644
--- a/dlls/dmband/bandtrack.c
+++ b/dlls/dmband/bandtrack.c
@@ -317,7 +317,7 @@ static HRESULT IDirectMusicBandTrack_IPersistStream_LoadBand (LPPERSISTSTREAM if
       return  E_OUTOFMEMORY;
     }
     pNewBand->BandHeader = *pHeader;
-    pNewBand->pBand = (IDirectMusicBandImpl*)((char*)(*ppBand) - offsetof(IDirectMusicBandImpl,BandVtbl));
+    pNewBand->band = *ppBand;
     IDirectMusicBand_AddRef(*ppBand);
     list_add_tail (&This->Bands, &pNewBand->entry);
   }
diff --git a/dlls/dmband/dmband_private.h b/dlls/dmband/dmband_private.h
index 0f5f939..b69e967 100644
--- a/dlls/dmband/dmband_private.h
+++ b/dlls/dmband/dmband_private.h
@@ -78,7 +78,7 @@ typedef struct _DMUS_PRIVATE_INSTRUMENT {
 typedef struct _DMUS_PRIVATE_BAND {
 	struct list entry; /* for listing elements */
 	DMUS_PRIVATE_BAND_ITEM_HEADER BandHeader;
-	IDirectMusicBandImpl* pBand;
+	IDirectMusicBand *band;
 } DMUS_PRIVATE_BAND, *LPDMUS_PRIVATE_BAND;
 
 




More information about the wine-cvs mailing list