BTW, the patch looks good to me.
On Tue, May 29, 2012 at 8:07 AM, Vincent Povirk madewokherd@gmail.com wrote:
- offset.QuadPart = 0;
- size.u.LowPart = 0xffffffff;
- size.u.HighPart = 0xffffffff;
- return IWICStream_InitializeFromIStreamRegion(iface, pIStream, offset, size);
What prevents you from discovering correct stream size?
The size passed to InitializeFromIStreamRegion is an upper limit. If the underlying stream is smaller, the appropriate size will still be reported from Read, Stat, and Seek.