dsound: Fix a failing test on XP.

This commit is contained in:
Jeff Zaroyko 2008-09-19 15:26:57 +10:00 committed by Alexandre Julliard
parent f5bdc72c49
commit 724a45d15e
1 changed files with 3 additions and 2 deletions

View File

@ -763,8 +763,9 @@ static HRESULT test_secondary(LPGUID lpGuid)
wfxe.Format.cbSize = sizeof(wfxe) - sizeof(wfx) + 1;
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL) && !secondary)
|| rc==DS_OK, /* 2003 / 2008 */
ok(((rc==DSERR_CONTROLUNAVAIL || rc==DSERR_INVALIDCALL || rc==DSERR_INVALIDPARAM)
&& !secondary)
|| rc==DS_OK, /* 2003 / 2008 */
"IDirectSound_CreateSoundBuffer() returned: %08x %p\n",
rc, secondary);
if (secondary)