Commit f5a4a9b6 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Give the right ids to the DirectSoundCreate8 function (thanks to

Robert Reif).
parent 1279d9a0
......@@ -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 ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment