mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-05 05:44:15 +01:00
Merge pull request #22275 from hrydgard/scemp4-review-fixes
sceMp4: Read the effective flags (not the config), don't reload the modules by accident
This commit is contained in:
2 files changed
+7
-5
No files matched your search
@@ -2835,7 +2835,9 @@ struct GetModuleIdByAddressArg
|
||||
// needs the callee's gp in place. libmp4.prx uses it on the three callbacks it is given.
|
||||
// Named after what it does; the official name isn't known.
|
||||
static u32 sceKernelGetModuleGPByAddress(u32 addr, u32 gpPtr) {
|
||||
if (!Memory::IsValidAddress(gpPtr)) {
|
||||
// Four bytes get written, so check for four - IsValidAddress would pass on the last three
|
||||
// bytes of a region.
|
||||
if (!Memory::IsValidRange(gpPtr, 4)) {
|
||||
return hleLogError(Log::sceModule, SCE_KERNEL_ERROR_ILLEGAL_ADDR, "bad gp pointer");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user