diff --git a/app/src/main/cpp/skyline/kernel/svc.cpp b/app/src/main/cpp/skyline/kernel/svc.cpp index b43c7a57..1f45ade2 100644 --- a/app/src/main/cpp/skyline/kernel/svc.cpp +++ b/app/src/main/cpp/skyline/kernel/svc.cpp @@ -664,7 +664,7 @@ namespace skyline::kernel::svc { break; case constant::infoState::TotalMemoryUsage: - out = state.process->heap->address + constant::DefStackSize + state.os->memory.GetProgramSize(); + out = state.process->heap->size + constant::DefStackSize + state.os->memory.GetProgramSize(); break; case constant::infoState::AddressSpaceBaseAddr: