dsound: Make test recover from failure to preserve primary buffer length after SetFormat().

This commit is contained in:
Alex Villacís Lasso 2007-06-25 12:55:36 -05:00 committed by Alexandre Julliard
parent 647ad64faa
commit f2626bab14
2 changed files with 2 additions and 0 deletions

View File

@ -420,6 +420,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
" buffer size changed after SetFormat() - "
"previous size was %u, current size is %u\n",
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
dsbcaps.dwBufferBytes = new_dsbcaps.dwBufferBytes;
/* Check for primary buffer flags change */
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,

View File

@ -307,6 +307,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
" buffer size changed after SetFormat() - "
"previous size was %u, current size is %u\n",
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
dsbcaps.dwBufferBytes = new_dsbcaps.dwBufferBytes;
/* Check for primary buffer flags change */
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,