dsound/tests: Improve test for IDirectSound8_CreateSoundBuffer.

This commit is contained in:
Zac Brown 2008-06-10 13:08:33 -07:00 committed by Alexandre Julliard
parent 85605ab546
commit e4ff8a0c0a

View file

@ -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,"