Commit 631d9860 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

windowscodecs: Seek to start of stream when opening TIFF files.

parent a044639d
......@@ -183,6 +183,11 @@ static void tiff_stream_unmap(thandle_t client_data, tdata_t addr, toff_t size)
static TIFF* tiff_open_stream(IStream *stream, const char *mode)
{
LARGE_INTEGER zero;
zero.QuadPart = 0;
IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL);
return pTIFFClientOpen("<IStream object>", mode, stream, tiff_stream_read,
tiff_stream_write, tiff_stream_seek, tiff_stream_close,
tiff_stream_size, tiff_stream_map, tiff_stream_unmap);
......
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