diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index 82567f8f..0fe24a59 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -2102,6 +2102,8 @@ namespace if (!potential_base) { + c.win_emu.log.print(color::dark_gray, "--> Not allocated\n"); + return STATUS_MEMORY_NOT_ALLOCATED; } @@ -2117,9 +2119,15 @@ namespace if (commit && !reserve && c.emu.commit_memory(potential_base, allocation_bytes, protection)) { + c.win_emu.log.print(color::dark_gray, "--> Committed 0x%" PRIx64 " - 0x%" PRIx64 "\n", potential_base, + potential_base + allocation_bytes); + return STATUS_SUCCESS; } + c.win_emu.log.print(color::dark_gray, "--> Allocated 0x%" PRIx64 " - 0x%" PRIx64 "\n", potential_base, + potential_base + allocation_bytes); + return c.emu.allocate_memory(potential_base, allocation_bytes, protection, !commit) ? STATUS_SUCCESS : STATUS_MEMORY_NOT_ALLOCATED;