Zac Brown : dsound/tests: Improve test for IDirectSound8_CreateSoundBuffer.

Alexandre Julliard julliard at winehq.org
Wed Jun 11 05:59:29 CDT 2008


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

Author: Zac Brown <zac at zacbrown.org>
Date:   Tue Jun 10 13:08:33 2008 -0700

dsound/tests: Improve test for IDirectSound8_CreateSoundBuffer.

---

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

diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c
index e08767e..024dbc1 100644
--- a/dlls/dsound/tests/dsound8.c
+++ b/dlls/dsound/tests/dsound8.c
@@ -432,7 +432,10 @@ static HRESULT test_primary8(LPGUID lpGuid)
        "DSERR_INVALIDPARAM, returned: rc=%s,dsbo=%p\n",
        DXGetErrorString8(rc),primary);
 
-    /* DSOUND: Error: Invalid buffer description pointer */
+    ZeroMemory(&bufdesc, sizeof(bufdesc));
+    bufdesc.dwSize = sizeof(DSBUFFERDESC);
+
+    /* DSOUND: Error: Invalid dsound buffer interface pointer */
     rc=IDirectSound8_CreateSoundBuffer(dso,&bufdesc,0,NULL);
     ok(rc==DSERR_INVALIDPARAM && primary==0,
        "IDirectSound8_CreateSoundBuffer() should have failed: rc=%s,"




More information about the wine-cvs mailing list