Michael Stefaniuc : dmime/tests: Test the return value of IDirectMusic_SetDirectSound().

Alexandre Julliard julliard at winehq.org
Tue Feb 5 16:01:34 CST 2019


Module: wine
Branch: master
Commit: 6b76648a8b773838ecde00719ca54a433edf5ce6
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6b76648a8b773838ecde00719ca54a433edf5ce6

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Feb  5 20:04:55 2019 +0100

dmime/tests: Test the return value of IDirectMusic_SetDirectSound().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dmime/tests/performance.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dmime/tests/performance.c b/dlls/dmime/tests/performance.c
index 567de1e..c2ca4cd 100644
--- a/dlls/dmime/tests/performance.c
+++ b/dlls/dmime/tests/performance.c
@@ -178,7 +178,7 @@ static HRESULT test_InitAudio(void)
 
     /* Provided dmusic initialized with SetDirectSound */
     create_performance(&performance, &dmusic, &dsound, TRUE);
-    IDirectMusic_SetDirectSound(dmusic, dsound, NULL);
+    hr = IDirectMusic_SetDirectSound(dmusic, dsound, NULL);
     ok(hr == S_OK, "SetDirectSound failed: %08x\n", hr);
     ref = get_refcount(dsound);
     ok(ref == 2, "dsound ref count got %d expected 2\n", ref);
@@ -192,7 +192,7 @@ static HRESULT test_InitAudio(void)
 
     /* Provided dmusic and dsound, dmusic initialized with SetDirectSound */
     create_performance(&performance, &dmusic, &dsound, TRUE);
-    IDirectMusic_SetDirectSound(dmusic, dsound, NULL);
+    hr = IDirectMusic_SetDirectSound(dmusic, dsound, NULL);
     ok(hr == S_OK, "SetDirectSound failed: %08x\n", hr);
     ref = get_refcount(dsound);
     ok(ref == 2, "dsound ref count got %d expected 2\n", ref);




More information about the wine-cvs mailing list