Andrew Eikum : dsound/tests: Fix test that fails on older Windows 2000.
Module: wine Branch: master Commit: 892068f96ca895731dd2ed5f070c21c711b8eff9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=892068f96ca895731dd2ed5f07... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri May 31 10:27:38 2013 -0500 dsound/tests: Fix test that fails on older Windows 2000. --- dlls/dsound/tests/dsound.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c index bca0d76..d31dc9c 100644 --- a/dlls/dsound/tests/dsound.c +++ b/dlls/dsound/tests/dsound.c @@ -1409,6 +1409,11 @@ static HRESULT test_invalid_fmts(LPGUID lpGuid) ok(wfx.nBlockAlign == 4, "blockalign: %u\n", wfx.nBlockAlign); ok(wfx.nAvgBytesPerSec == 44100 * 4, "avgbytes: %u\n", wfx.nAvgBytesPerSec); + if(!gotdx8){ + win_skip("Not doing the WAVE_FORMAT_EXTENSIBLE tests\n"); + goto done; + } + fmtex.Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX); fmtex.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE; fmtex.Format.nChannels = 2; @@ -1475,6 +1480,7 @@ static HRESULT test_invalid_fmts(LPGUID lpGuid) IDirectSoundBuffer_Release(primary); } +done: IDirectSound_Release(dso); return S_OK;
participants (1)
-
Alexandre Julliard