fix same-name variables

This commit is contained in:
LiquidFenrir 2017-12-07 18:23:29 +01:00
parent 48303604b0
commit f9adbcc9d9

View File

@ -101,12 +101,12 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info)
codeTotalSize = (u32)(textTotalRoundedSize + rodataTotalRoundedSize + dataTotalRoundedSize); codeTotalSize = (u32)(textTotalRoundedSize + rodataTotalRoundedSize + dataTotalRoundedSize);
codeDestAddress = codeStartAddress = (u32)textStartAddress; //should be 0x00100000 codeDestAddress = codeStartAddress = (u32)textStartAddress; //should be 0x00100000
MemInfo info; MemInfo mem;
PageInfo out; PageInfo out;
heapDestAddress = heapStartAddress = 0x08000000; heapDestAddress = heapStartAddress = 0x08000000;
svcQueryProcessMemory(&info, &out, processHandle, heapStartAddress); svcQueryProcessMemory(&mem, &out, processHandle, heapStartAddress);
heapTotalSize = info.size; heapTotalSize = mem.size;
Result codeRes = svcMapProcessMemoryEx(processHandle, codeDestAddress, codeStartAddress, codeTotalSize); Result codeRes = svcMapProcessMemoryEx(processHandle, codeDestAddress, codeStartAddress, codeTotalSize);
Result heapRes = svcMapProcessMemoryEx(processHandle, heapDestAddress, heapStartAddress, heapTotalSize); Result heapRes = svcMapProcessMemoryEx(processHandle, heapDestAddress, heapStartAddress, heapTotalSize);