diff options
| author | 2016-04-30 00:11:08 -0400 | |
|---|---|---|
| committer | 2016-04-30 00:11:08 -0400 | |
| commit | 15d21c0dc5213fb5f0fb71ca9ea90b8d4bb9eb71 (patch) | |
| tree | 1efaccc0d357f3f074938af586724a50bfea0469 /src/core/hle/svc.cpp | |
| parent | Merge pull request #1699 from mailwl/gpu-rights (diff) | |
| parent | ac:u: stub CloseAsync; check memory size aling in svc:GetProcessInfo(type=2) (diff) | |
| download | yuzu-15d21c0dc5213fb5f0fb71ca9ea90b8d4bb9eb71.tar.gz yuzu-15d21c0dc5213fb5f0fb71ca9ea90b8d4bb9eb71.tar.xz yuzu-15d21c0dc5213fb5f0fb71ca9ea90b8d4bb9eb71.zip | |
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) { | |||
| 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: |