Jeff Zaroyko : dsound: Fix a failing test on XP.

Alexandre Julliard julliard at winehq.org
Fri Sep 19 07:14:58 CDT 2008


Module: wine
Branch: master
Commit: 724a45d15ef460eb29eb27cc0e36a40ab829fd78
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=724a45d15ef460eb29eb27cc0e36a40ab829fd78

Author: Jeff Zaroyko <jeffz at jeffz.name>
Date:   Fri Sep 19 15:26:57 2008 +1000

dsound: Fix a failing test on XP.

---

 dlls/dsound/tests/dsound.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 9dc8f21..256f086 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -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)




More information about the wine-cvs mailing list