diff options
author | bunnei <bunneidev@gmail.com> | 2016-04-30 00:11:08 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-04-30 00:11:08 -0400 |
commit | 15d21c0dc5213fb5f0fb71ca9ea90b8d4bb9eb71 (patch) | |
tree | 1efaccc0d357f3f074938af586724a50bfea0469 /src/core/hle/svc.cpp | |
parent | eb2d6e401583a2429a9751d76ed138d8a7f44810 (diff) | |
parent | bd8cc69893e49ff0615c326301d8d2a5a49bee7e (diff) |
Merge pull request #1647 from mailwl/acu-closeasync
ac:u: stub CloseAsync; align memory size in svc:GetProcessInfo(type=2)
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r-- | src/core/hle/svc.cpp | 4 |
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) { // TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure // what's the difference between them. *out = process->heap_used + process->linear_heap_used + process->misc_memory_used; + if(*out % Memory::PAGE_SIZE != 0) { + LOG_ERROR(Kernel_SVC, "called, memory size not page-aligned"); + return ERR_MISALIGNED_SIZE; + } break; case 1: case 3: |