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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-05 20:04:55 +01:00 committed by Alexandre Julliard
parent c827e3f6af
commit 6b76648a8b
1 changed files with 2 additions and 2 deletions

View File

@ -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);