Signed-off-by: Fan WenJie <fanwj(a)mail.ustc.edu.cn>
Hook mmap and munmap seem to be the only solution for drivers such as OpenGL to allocate over 32-bit address. For example, Fairy and Sword 4 has some render problems on master branch of wine. The patch can solve the problems.
--
v2: ntdll:setting limit with checking
server:setting range64 with checking
https://gitlab.winehq.org/wine/wine/-/merge_requests/3460