mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Redirect zero base memory image requests to main exe
This commit is contained in:
@@ -66,7 +66,10 @@ namespace syscalls
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
|
||||
const auto* mod = c.win_emu.mod_manager.find_by_address(base_address);
|
||||
const auto* mod = base_address == 0 //
|
||||
? c.win_emu.mod_manager.executable
|
||||
: c.win_emu.mod_manager.find_by_address(base_address);
|
||||
|
||||
if (!mod)
|
||||
{
|
||||
c.win_emu.log.error("Bad address for memory image request: 0x%" PRIx64 "\n", base_address);
|
||||
|
||||
Reference in New Issue
Block a user