dsound: Make test recover from failure to preserve primary buffer length after SetFormat().
This commit is contained in:
parent
647ad64faa
commit
f2626bab14
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue