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

This commit is contained in:
Rémi Bernon 2023-10-26 14:36:33 +02:00 committed by Alexandre Julliard
parent 60e8b78e4d
commit f5c8d273b6
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}