[PATCH] dmime/tests: Test the return value of IDirectMusic_SetDirectSound()
Michael Stefaniuc
mstefani at winehq.org
Tue Feb 5 13:04:55 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani 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 567de1e7f1..c2ca4cdf28 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);
--
2.20.1
More information about the wine-devel
mailing list