https://bugs.winehq.org/show_bug.cgi?id=56479
--- Comment #9 from Fabian Maurer dark.shadow4@web.de --- The error comes from ntdll/unix/virtual.c: https://gitlab.winehq.org/wine/wine/-/blob/4c0103e5/dlls/ntdll/unix/virtual....
- set_protection - calls set_vprot - calls mprotect_exec - "return mprotect( base, size, unix_prot );" - mprotect fails with error 13 (EACCES)
Linux manpage says (https://man7.org/linux/man-pages/man2/mprotect.2.html)
EACCES The memory cannot be given the specified access. This can happen, for example, if you mmap(2) a file to which you have read-only access, then ask mprotect() to mark it PROT_WRITE.
If we check where the adress comes from, it got mapped by MapViewOfFile3 - as PAGE_EXECUTE_READ