dmime: Use the correct interface methods.

This commit is contained in:
Rémi Bernon 2023-09-04 13:19:25 +02:00 committed by Alexandre Julliard
parent 0feb0cda74
commit 2dc15d3943
4 changed files with 8 additions and 8 deletions

View file

@ -129,8 +129,8 @@ static HRESULT WINAPI DirectMusicGraph_InsertTool(IDirectMusicGraph *iface, IDir
pNewTool = calloc(1, sizeof(*pNewTool));
pNewTool->pTool = pTool;
pNewTool->dwIndex = lIndex;
IDirectMusicTool8_AddRef(pTool);
IDirectMusicTool8_Init(pTool, iface);
IDirectMusicTool_AddRef(pTool);
IDirectMusicTool_Init(pTool, iface);
list_add_tail (pPrevEntry->next, &pNewTool->entry);
#if 0

View file

@ -879,7 +879,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_CloseDown(IDirectMusicPerform
This->dsound = NULL;
}
if (This->dmusic) {
IDirectMusic_SetDirectSound(This->dmusic, NULL, NULL);
IDirectMusic8_SetDirectSound(This->dmusic, NULL, NULL);
IDirectMusic8_Release(This->dmusic);
This->dmusic = NULL;
}

View file

@ -223,7 +223,7 @@ static BOOL missing_dmime(void)
if (hr == S_OK && dms)
{
IDirectMusicSegment_Release(dms);
IDirectMusicSegment8_Release(dms);
return FALSE;
}
return TRUE;
@ -1015,7 +1015,7 @@ static void expect_getparam(IDirectMusicTrack *track, REFGUID type, const char *
HRESULT hr;
char buf[64] = { 0 };
hr = IDirectMusicTrack8_GetParam(track, type, 0, NULL, buf);
hr = IDirectMusicTrack_GetParam(track, type, 0, NULL, buf);
ok(hr == expect, "GetParam(%s) failed: %#lx, expected %#lx\n", name, hr, expect);
}
@ -1025,7 +1025,7 @@ static void expect_setparam(IDirectMusicTrack *track, REFGUID type, const char *
HRESULT hr;
char buf[64] = { 0 };
hr = IDirectMusicTrack8_SetParam(track, type, 0, buf);
hr = IDirectMusicTrack_SetParam(track, type, 0, buf);
ok(hr == expect, "SetParam(%s) failed: %#lx, expected %#lx\n", name, hr, expect);
}
@ -1103,7 +1103,7 @@ static void test_track(void)
/* IDirectMusicTrack */
if (class[i].has_params != ~0) {
for (j = 0; j < ARRAY_SIZE(param_types); j++) {
hr = IDirectMusicTrack8_IsParamSupported(dmt, param_types[j].type);
hr = IDirectMusicTrack_IsParamSupported(dmt, param_types[j].type);
if (class[i].has_params & (1 << j)) {
ok(hr == S_OK, "IsParamSupported(%s) failed: %#lx, expected S_OK\n",
param_types[j].name, hr);

View file

@ -334,7 +334,7 @@ static void test_createport(void)
ok(hr == S_OK, "CloseDown failed: %#lx\n", hr);
IDirectMusic_Release(music);
IDirectMusicPerformance_Release(perf);
IDirectMusicPerformance8_Release(perf);
}
static void test_pchannel(void)