mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Rename the get-memory-pointer functions to make it clear where CPU exceptions can happen.
This commit is contained in:
1 parent
e9a3449ede
commit
c5e4d0d90d
53 files changed
+224
-224
No files matched your search
@@ -544,7 +544,7 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop) {
|
||||
}
|
||||
const u32 srcSize = p->p_filesz;
|
||||
const u32 dstSize = p->p_memsz; // can be bigger than size-in-file (p_filesz), we'll zero the rest below. But cannot be smaller!
|
||||
u8 *dst = Memory::GetPointerWriteRange(writeAddr, dstSize);
|
||||
u8 *dst = Memory::GetPointerWriteRangeOrException(writeAddr, dstSize);
|
||||
if (dst) {
|
||||
if (srcSize < dstSize) {
|
||||
memset(dst + srcSize, 0, dstSize - srcSize); // zero out the rest of the segment, this also applies to bss (which is all-zero)
|
||||
|
||||
Reference in new issue
Block a user