Commit 12d3ccb4 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Only use index if group is set in IDirectMusicSegment_SetParam.

parent e9fdbe4d
......@@ -403,8 +403,11 @@ static HRESULT WINAPI segment_SetParam(IDirectMusicSegment8 *iface, REFGUID type
LIST_FOR_EACH_ENTRY(entry, &This->tracks, struct track_entry, entry)
{
if (group != -1 && !(group & entry->dwGroupBits)) continue;
if (index != DMUS_SEG_ALLTRACKS && index--) continue;
if (group != -1)
{
if (!(group & entry->dwGroupBits)) continue;
if (index != DMUS_SEG_ALLTRACKS && index--) continue;
}
hr = IDirectMusicTrack_IsParamSupported(entry->pTrack, type);
if (hr == DMUS_E_TYPE_UNSUPPORTED) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment