https://bugs.winehq.org/show_bug.cgi?id=42546
--- Comment #4 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 57459 --> https://bugs.winehq.org/attachment.cgi?id=57459 Use the same buffer length for intermediate buffer
Ivan, thanks for the excellent analysis. Can you try applying Huw's two patches (or, wait for them to be merged into Wine soon), and then apply this diff on top? Let me know if it helps.