Re: dsound: Standardize the COM usage in duplex.c.
Michael Stefaniuc <mstefani(a)redhat.de> writes:
--- dlls/dsound/duplex.c | 86 ++++++++++++++++++++++++++++++------------------- 1 files changed, 53 insertions(+), 33 deletions(-)
diff --git a/dlls/dsound/duplex.c b/dlls/dsound/duplex.c index 4a1fbd2..2fcf64c 100644 --- a/dlls/dsound/duplex.c +++ b/dlls/dsound/duplex.c @@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound); typedef struct IDirectSoundFullDuplexImpl { /* IUnknown fields */ - const IDirectSoundFullDuplexVtbl *lpVtbl; + IDirectSoundFullDuplex IDirectSoundFullDuplex_iface; LONG ref;
/* IDirectSoundFullDuplexImpl fields */ @@ -57,23 +57,43 @@ typedef struct IDirectSoundFullDuplexImpl } IDirectSoundFullDuplexImpl;
typedef struct IDirectSoundFullDuplex_IUnknown { - const IUnknownVtbl *lpVtbl; + IUnknown IUnknown_iface; LONG ref; IDirectSoundFullDuplexImpl *pdsfd; } IDirectSoundFullDuplex_IUnknown;
typedef struct IDirectSoundFullDuplex_IDirectSound8 { - const IDirectSound8Vtbl *lpVtbl; + IDirectSound8 IDirectSound8_iface; LONG ref; IDirectSoundFullDuplexImpl *pdsfd; } IDirectSoundFullDuplex_IDirectSound8;
typedef struct IDirectSoundFullDuplex_IDirectSoundCapture { - const IDirectSoundCaptureVtbl *lpVtbl; + IDirectSoundCapture IDirectSoundCapture_iface; LONG ref; IDirectSoundFullDuplexImpl *pdsfd; } IDirectSoundFullDuplex_IDirectSoundCapture;
All these objects are redundant, they should be merged. -- Alexandre Julliard julliard(a)winehq.org
participants (1)
-
Alexandre Julliard