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

dmband: Skip band / band track chunk on parsing failure.

parent 60e8b78e
......@@ -422,6 +422,7 @@ static HRESULT WINAPI band_persist_stream_Load(IPersistStream *iface, IStream *s
}
}
stream_skip_chunk(stream, &chunk);
if (FAILED(hr)) return hr;
if (TRACE_ON(dmband))
......@@ -439,7 +440,6 @@ static HRESULT WINAPI band_persist_stream_Load(IPersistStream *iface, IStream *s
}
}
stream_skip_chunk(stream, &chunk);
return S_OK;
}
......
......@@ -568,6 +568,7 @@ static HRESULT WINAPI band_track_persist_stream_Load(IPersistStream *iface, IStr
}
}
stream_skip_chunk(stream, &chunk);
if (FAILED(hr)) return hr;
if (TRACE_ON(dmband))
......@@ -590,7 +591,6 @@ static HRESULT WINAPI band_track_persist_stream_Load(IPersistStream *iface, IStr
}
}
stream_skip_chunk(stream, &chunk);
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