Skip to content

Commit

Permalink
allow remote alloc fail in attach process
Browse files Browse the repository at this point in the history
  • Loading branch information
xzn committed Feb 9, 2024
1 parent 70230c0 commit 459671d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ u32 nsAttachProcess(Handle hProcess, u32 remotePC, NS_CONFIG *cfg, int thumbR3)
ret = mapRemoteMemory(hProcess, baseAddr, totalSize, MEMOP_ALLOC);
if (ret != 0) {
showDbg("mapRemoteMemory failed: %08"PRIx32, ret);
return ret;
}
// set rwx
ret = protectRemoteMemory(hProcess, (void *)baseAddr, totalSize, MEMPERM_READWRITE | MEMPERM_EXECUTE);
Expand Down

0 comments on commit 459671d

Please sign in to comment.