Commit 813b35c9 authored by Yuxuan Shui's avatar Yuxuan Shui Committed by Alexandre Julliard

dmime: Don't skip chunk for MIDI files.

MIDI files aren't RIFF, calling stream_skip_chunk on it is invalid.
parent c65ac223
......@@ -844,7 +844,9 @@ static HRESULT WINAPI segment_persist_stream_Load(IPersistStream *iface, IStream
}
}
stream_skip_chunk(stream, &chunk);
if (chunk.id != mmioFOURCC('M', 'T', 'h', 'd'))
stream_skip_chunk(stream, &chunk);
if (FAILED(hr))
{
WARN("Failed to load segment from stream %p, hr %#lx\n", stream, hr);
......
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