TestHarnessRunner: Use VirtualAlloc for mapping regions.

Needs to be alligned to allocation size. Which is a page on Linux, or
64k on Windows.

In order to map at `0x1'0000` on Wine, we need to use a special case DOS
area allocation path.
This commit is contained in:
Ryan Houdek committed 2023-05-17 21:05:55 -07:00
1 parent 3f214dd244
commit 4a54197868
2 files changed
+27 -48

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ int main(int argc, char **argv, char **const envp) {
: FEX::HLE::x32::CreateHandler(CTX.get(), SignalDelegation.get(), std::move(Allocator));
// Run through FEX
if (!Loader.MapMemory(SyscallHandler.get())) {
if (!Loader.MapMemory()) {
// failed to map
LogMan::Msg::EFmt("Failed to map %d-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
return -ENOEXEC;