[PATCH] windowscodecs: Implement WICCreateBitmapFromSection.

Hans Leidekker hans at codeweavers.com
Thu Mar 15 09:48:17 CDT 2018


On Thu, 2018-03-15 at 22:40 +0800, Dmitry Timoshkov wrote:
> Hans Leidekker <hans at codeweavers.com> wrote:
> 
> > > +    buffer = MapViewOfFile(section, access, 0, offset, 0);
> > > +    if (!buffer) return HRESULT_FROM_WIN32(GetLastError());
> > 
> > MapViewOfFile wants a multiple of the allocation granularity for the
> > offset. Does WICCreateBitmapFromSectionEx have the same constraint?
> 
> I would be very much surprised if it doesn't, a passed in section
> handle implies using MapViewOfFile to access the bitmap bits.

It could also map at the base and store the offset.




More information about the wine-devel mailing list