loader: fix ldr:ro unmap semantics for < 3.0.0
This commit is contained in:
@@ -151,13 +151,15 @@ struct MappedCodeMemory {
|
||||
return rc;
|
||||
}
|
||||
|
||||
void Unmap() {
|
||||
Result Unmap() {
|
||||
Result rc = 0;
|
||||
if (this->IsMapped()) {
|
||||
if (R_FAILED(svcUnmapProcessMemory(this->mapped_address, this->process_handle, this->code_memory_address, this->size))) {
|
||||
if (R_FAILED((rc = svcUnmapProcessMemory(this->mapped_address, this->process_handle, this->code_memory_address, this->size)))) {
|
||||
/* TODO: panic(). */
|
||||
}
|
||||
}
|
||||
this->mapped_address = NULL;
|
||||
return rc;
|
||||
}
|
||||
|
||||
void Close() {
|
||||
|
||||
Reference in New Issue
Block a user