dmstyle: The Chord track doesn't support the BandParam type.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cec8d5c968
commit
f5ad835ec3
|
@ -140,21 +140,18 @@ static HRESULT WINAPI chord_track_SetParam(IDirectMusicTrack8 *iface, REFGUID rg
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI chord_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID rguidType)
|
static HRESULT WINAPI chord_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID type)
|
||||||
{
|
{
|
||||||
IDirectMusicChordTrack *This = impl_from_IDirectMusicTrack8(iface);
|
IDirectMusicChordTrack *This = impl_from_IDirectMusicTrack8(iface);
|
||||||
|
|
||||||
TRACE("(%p, %s)\n", This, debugstr_dmguid(rguidType));
|
TRACE("(%p, %s)\n", This, debugstr_dmguid(type));
|
||||||
|
|
||||||
if (!rguidType)
|
if (!type)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
if (IsEqualGUID (rguidType, &GUID_BandParam)
|
if (IsEqualGUID(type, &GUID_ChordParam) || IsEqualGUID(type, &GUID_RhythmParam))
|
||||||
|| IsEqualGUID (rguidType, &GUID_ChordParam)
|
|
||||||
|| IsEqualGUID (rguidType, &GUID_RhythmParam)) {
|
|
||||||
TRACE("param supported\n");
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
|
||||||
TRACE("param unsupported\n");
|
TRACE("param unsupported\n");
|
||||||
return DMUS_E_TYPE_UNSUPPORTED;
|
return DMUS_E_TYPE_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,7 @@ static void test_track(void)
|
||||||
unsigned int todo_params;
|
unsigned int todo_params;
|
||||||
} class[] = {
|
} class[] = {
|
||||||
{ X(DirectMusicAuditionTrack), TRUE, FALSE, 0x18204200, 0x18204200 },
|
{ X(DirectMusicAuditionTrack), TRUE, FALSE, 0x18204200, 0x18204200 },
|
||||||
{ X(DirectMusicChordTrack), TRUE, TRUE, 0x100002, 1 },
|
{ X(DirectMusicChordTrack), TRUE, TRUE, 0x100002, 0 },
|
||||||
{ X(DirectMusicCommandTrack), TRUE, TRUE, 0x38, 0 },
|
{ X(DirectMusicCommandTrack), TRUE, TRUE, 0x38, 0 },
|
||||||
{ X(DirectMusicMotifTrack), FALSE, FALSE, 0x8204200, 0 },
|
{ X(DirectMusicMotifTrack), FALSE, FALSE, 0x8204200, 0 },
|
||||||
{ X(DirectMusicMuteTrack), TRUE, FALSE, 0x40000, 0 },
|
{ X(DirectMusicMuteTrack), TRUE, FALSE, 0x40000, 0 },
|
||||||
|
@ -333,7 +333,6 @@ static void test_track(void)
|
||||||
ok(hr == S_OK, "IsParamSupported(%s) failed: %08x, expected S_OK\n",
|
ok(hr == S_OK, "IsParamSupported(%s) failed: %08x, expected S_OK\n",
|
||||||
param_types[j].name, hr);
|
param_types[j].name, hr);
|
||||||
else
|
else
|
||||||
todo_wine_if(class[i].todo_params & (1 << j))
|
|
||||||
ok(hr == DMUS_E_TYPE_UNSUPPORTED,
|
ok(hr == DMUS_E_TYPE_UNSUPPORTED,
|
||||||
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED\n",
|
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED\n",
|
||||||
param_types[j].name, hr);
|
param_types[j].name, hr);
|
||||||
|
|
Loading…
Reference in New Issue