From f5a4a9b60ad0fd8623f24d02cc6aa2a841fdc4fe Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sun, 4 May 2003 02:24:36 +0000 Subject: [PATCH] Give the right ids to the DirectSoundCreate8 function (thanks to Robert Reif). --- dlls/dsound/dsound_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index e94399d11d5..09a9db392c1 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -760,10 +760,7 @@ HRESULT WINAPI DirectSoundCreate8(LPCGUID lpcGUID,LPDIRECTSOUND8 *ppDS,IUnknown setup_dsound_options(); /* Default device? */ - if ( !lpcGUID || - IsEqualGUID(lpcGUID, &GUID_NULL) || - IsEqualGUID(lpcGUID, &IID_IDirectSound) || - IsEqualGUID(lpcGUID, &IID_IDirectSound8)) + if (!lpcGUID || IsEqualGUID(lpcGUID, &GUID_NULL)) lpcGUID = &DSDEVID_DefaultPlayback; if (GetDeviceID(lpcGUID, &devGuid) != DS_OK) { @@ -959,7 +956,7 @@ static HRESULT WINAPI DSCF_CreateInstance( if ( IsEqualGUID( &IID_IDirectSound, riid ) || IsEqualGUID( &IID_IDirectSound8, riid ) ) { /* FIXME: reuse already created dsound if present? */ - return DirectSoundCreate8(riid,(LPDIRECTSOUND8*)ppobj,pOuter); + return DirectSoundCreate8(0,(LPDIRECTSOUND8*)ppobj,pOuter); } if ( IsEqualGUID( &IID_IDirectSoundCapture, riid ) || IsEqualGUID( &IID_IDirectSoundCapture8, riid ) ) {