Alex Villacís Lasso : dsound: Make test recover from failure to preserve primary buffer length after SetFormat ().

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 26 07:11:51 CDT 2007


Module: wine
Branch: master
Commit: f2626bab14d5d895fbd4ca41737e9d41811f3395
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2626bab14d5d895fbd4ca41737e9d41811f3395

Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date:   Mon Jun 25 12:55:36 2007 -0500

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

---

 dlls/dsound/tests/ds3d.c  |    1 +
 dlls/dsound/tests/ds3d8.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c
index 54b50e2..4f8ec8f 100644
--- a/dlls/dsound/tests/ds3d.c
+++ b/dlls/dsound/tests/ds3d.c
@@ -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,
diff --git a/dlls/dsound/tests/ds3d8.c b/dlls/dsound/tests/ds3d8.c
index 00c0ef7..cddcf70 100644
--- a/dlls/dsound/tests/ds3d8.c
+++ b/dlls/dsound/tests/ds3d8.c
@@ -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,




More information about the wine-cvs mailing list