Fixes backtraces in Visual Studio Remote Debugging when the remote program is running on wine.
Not sure if this is entirely right yet, maybe the offset/size check should also be moved further up?
Test file is attached ( [map_test.c](/uploads/4d5b426fd9ad931ef4027332f75b1bd9/map_test.c) ), however it's probably not ideal since it tests against the value that the compiler happens to put at offset 0x10000 (I tested with mingw64 GCC). In any case this value just needs to match windows, so for other compilers it can be obtained by running the test on windows. This could probably be improved with a linker script if wanted.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8927