Commit f2626bab authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

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

parent 647ad64f
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment