csound class factory patch
Robert Reif
reif at earthlink.net
Sun Jul 4 13:01:12 CDT 2004
Create DirectSound or DirectSound8 depending on riid.
-------------- next part --------------
Index: dlls/dsound/dsound_main.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound_main.c,v
retrieving revision 1.100
diff -u -r1.100 dsound_main.c
--- dlls/dsound/dsound_main.c 4 Jul 2004 00:13:45 -0000 1.100
+++ dlls/dsound/dsound_main.c 4 Jul 2004 17:56:11 -0000
@@ -477,11 +477,11 @@
*ppobj = NULL;
- if ( IsEqualGUID( &IID_IDirectSound, riid ) ||
- IsEqualGUID( &IID_IDirectSound8, riid ) ) {
- /* FIXME: reuse already created dsound if present? */
+ if ( IsEqualIID( &IID_IDirectSound, riid ) )
+ return DirectSoundCreate(0,(LPDIRECTSOUND*)ppobj,pOuter);
+
+ if ( IsEqualIID( &IID_IDirectSound8, riid ) )
return DirectSoundCreate8(0,(LPDIRECTSOUND8*)ppobj,pOuter);
- }
WARN("(%p,%p,%s,%p) Interface not found!\n",This,pOuter,debugstr_guid(riid),ppobj);
return E_NOINTERFACE;
More information about the wine-patches
mailing list