[Bug 47878] VirtualProtect across page boundaries does not work

WineHQ Bugzilla wine-bugs at winehq.org
Sat Oct 5 15:05:04 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47878

--- Comment #2 from c3210606 at urhen.com ---
It's kinda hard to reproduce. Basically, I was trying to install Median XL
Sigma mod over Diablo 2 and run it over Wine. It requires manually extracting
the installer ( the installer itself doesn't work on wine ) and applying the
file changes by myself. The mod works by hijacking a dll that is put aside the
original exe and applying a list of patches to the binary. It works by running
a VirtualProtect with 0x40 prot, doing WriteProcessMemory and running
VirtualProtect with old prot. It crashes on only one patch which is applied to
an offset ending with 0xFFD, and 4 bytes of size. I confirmed the bug by
changing the patch to 0xFFC after which it started working flawlessly.

If needed, I can try and prepare the install for someone so you can reproduce.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list