summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ldr/ldr.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-11-02 23:41:57 +0100
committerGitHub <noreply@github.com>2021-11-02 23:41:57 +0100
commit3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba (patch)
tree5cbd9a62e1daf1c1de97444858064fe8210df077 /src/core/hle/service/ldr/ldr.cpp
parentMerge pull request #7227 from vonchenplus/fix_memory_leak_v2 (diff)
parentgeneral: Remove MakeResult helpers (diff)
downloadyuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar.gz
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar.bz2
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar.lz
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar.xz
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.tar.zst
yuzu-3d1f2bb3aa2e5bced4ab2342b5e591224f09f0ba.zip
Diffstat (limited to 'src/core/hle/service/ldr/ldr.cpp')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index 24b7e4435..e4b97c1f6 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -335,7 +335,7 @@ public:
CASCADE_CODE(result);
if (ValidateRegionForMap(page_table, addr, size)) {
- return MakeResult<VAddr>(addr);
+ return addr;
}
}
@@ -371,7 +371,7 @@ public:
}
if (ValidateRegionForMap(page_table, addr, size)) {
- return MakeResult<VAddr>(addr);
+ return addr;
}
}