Commit 5a66857f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Don't interrupt track iteration if SetParam failed.

parent 12d3ccb4
...@@ -409,11 +409,9 @@ static HRESULT WINAPI segment_SetParam(IDirectMusicSegment8 *iface, REFGUID type ...@@ -409,11 +409,9 @@ static HRESULT WINAPI segment_SetParam(IDirectMusicSegment8 *iface, REFGUID type
if (index != DMUS_SEG_ALLTRACKS && index--) continue; if (index != DMUS_SEG_ALLTRACKS && index--) continue;
} }
hr = IDirectMusicTrack_IsParamSupported(entry->pTrack, type); if (SUCCEEDED(hr = IDirectMusicTrack_IsParamSupported(entry->pTrack, type))
if (hr == DMUS_E_TYPE_UNSUPPORTED) continue; && FAILED(hr = IDirectMusicTrack_SetParam(entry->pTrack, type, music_time, param)))
WARN("SetParam for track %p failed, hr %#lx\n", entry->pTrack, hr);
hr = IDirectMusicTrack_SetParam(entry->pTrack, type, music_time, param);
if (FAILED(hr)) break;
} }
return S_OK; return S_OK;
......
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