https://bugs.winehq.org/show_bug.cgi?id=42907
--- Comment #27 from Zebediah Figura z.figura12@gmail.com --- (In reply to ganthore from comment #26)
I can confirm that your hack fixes the problem. I tested against wine-3.19 with the staging, poe and pba patches. Thank you for coming up with a solution here.
I wonder how native windows mitigates this heap problem? The mod runs fine on native win98/2000/xp/7/8/8.1/10
I don't know. Somehow their heap structure must be different such that critical data isn't stored 16 bytes past the end of the allocation.
One possibility is that pages are mapped directly, similar to Wine's "large block" allocation, but obviously with a lower threshold.