mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-21 03:46:37 +02: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:
@@ -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