I was watching some random YouTube stream and then heard a voice telling me to do this.
This can run wglgears on wow, though there's plenty of missing pieces which I don't have any idea how to fix (like buffer mapping, etc.). Opening it as a draft for now to show the whole thing, if it seems alright I'll send it in batches.
--
This merge request has too many patches to be relayed via email.
Please visit the URL below to see the contents of the merge request.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1010
Various notes:
- LowestStartingAddress is still unsupported;
- Patch 5 ("wow64: Set HighestEndingAddress in wow64_NtAllocateVirtualMemoryEx() if it is absent") is fixing existing WOW issue: NtAllocateVirtualMemoryEx() called from wow64 currently does not constraing the allocation to 32 bit address space (wow64_NtAllocateVirtualMemory() passes zero_bits for that).
- I initially thought of using a single inter process APC but added a different one due to zero_bits handling which is easier to convert in the target process.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1025
Fixes inconsistent function (or function pointer) declation and implementation.
(favoring non long types).
Fixes errouneous format specifier in printf-like function for arguments of type
DWORD_PTR (or SIZE_T or equiv).
This serie could be a starting point for enabling long type compilation in wined3d.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1014