summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index a9a1a3244..fb2aecbf2 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -859,6 +859,10 @@ static ResultCode GetProcessInfo(s64* out, Handle process_handle, u32 type) {
859 // TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure 859 // TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure
860 // what's the difference between them. 860 // what's the difference between them.
861 *out = process->heap_used + process->linear_heap_used + process->misc_memory_used; 861 *out = process->heap_used + process->linear_heap_used + process->misc_memory_used;
862 if(*out % Memory::PAGE_SIZE != 0) {
863 LOG_ERROR(Kernel_SVC, "called, memory size not page-aligned");
864 return ERR_MISALIGNED_SIZE;
865 }
862 break; 866 break;
863 case 1: 867 case 1:
864 case 3: 868 case 3: