dsound/tests: Accept another error code.
This commit is contained in:
parent
7e3ab90187
commit
d789495534
|
@ -790,7 +790,7 @@ static HRESULT test_secondary8(LPGUID lpGuid)
|
||||||
wfxe.Format.cbSize = sizeof(wfxe) - sizeof(wfx) + 1;
|
wfxe.Format.cbSize = sizeof(wfxe) - sizeof(wfx) + 1;
|
||||||
|
|
||||||
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL /* 2003 */) && !secondary)
|
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL /* 2003 */ || rc==DSERR_INVALIDPARAM) && !secondary)
|
||||||
|| rc==DS_OK /* driver dependent? */,
|
|| rc==DS_OK /* driver dependent? */,
|
||||||
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
||||||
rc, secondary);
|
rc, secondary);
|
||||||
|
@ -814,7 +814,7 @@ static HRESULT test_secondary8(LPGUID lpGuid)
|
||||||
|
|
||||||
wfxe.Format.cbSize = sizeof(wfxe);
|
wfxe.Format.cbSize = sizeof(wfxe);
|
||||||
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL || rc==E_INVALIDARG) && !secondary,
|
ok((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL || rc==DSERR_INVALIDPARAM) && !secondary,
|
||||||
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
||||||
rc, secondary);
|
rc, secondary);
|
||||||
if (secondary)
|
if (secondary)
|
||||||
|
@ -836,7 +836,7 @@ static HRESULT test_secondary8(LPGUID lpGuid)
|
||||||
|
|
||||||
wfxe.Format.cbSize = sizeof(wfxe) + 1;
|
wfxe.Format.cbSize = sizeof(wfxe) + 1;
|
||||||
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL /* 2003 */) && !secondary)
|
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL /* 2003 */ || rc==DSERR_INVALIDPARAM) && !secondary)
|
||||||
|| rc==DS_OK /* driver dependent? */,
|
|| rc==DS_OK /* driver dependent? */,
|
||||||
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
|
||||||
rc, secondary);
|
rc, secondary);
|
||||||
|
|
Loading…
Reference in New Issue