dsound: tests/dsound8.c: Improve test for IDirectSound8_CreateSoundBuffer
Zac Brown
zac at zacbrown.org
Tue Jun 10 14:26:58 CDT 2008
---
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,"
--
1.5.3.6
--------------000905060502090307090209--
More information about the wine-patches
mailing list