https://bugs.winehq.org/show_bug.cgi?id=40273
--- Comment #5 from Hans Leidekker hans@meelstraat.net --- (In reply to Dmitry Timoshkov from comment #4)
Created attachment 53921 [details] patch v2
Something like the attached patch should take care of the modifications to the section data made by an application.
Yep. I'm not sure you can pass the offset straight into MapViewOfFile. The documentation for MapViewOfFile says it should be a multiple of the allocation granularity but no such restriction is mentioned for WICCreateBitmapFromSection.
An alternative would be to map the view at the base and store it separately. The data pointer would then point at the offset into the view.