diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-02-25 10:13:52 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-02-25 11:12:32 -0500 |
| commit | 5167d1577d6b4074f46ad90864d6e0d6119089a3 (patch) | |
| tree | 8debfe33cc6f0abefb1c5dbb8ae6c01bf9b0e932 /src/core/hle/kernel/process_capability.h | |
| parent | 4f8cd74061464d01e0c3a4ea47a4141e3597cb57 (diff) | |
kernel/handle_table: Allow process capabilities to limit the handle table size
The kernel allows restricting the total size of the handle table through
the process capability descriptors. Until now, this functionality wasn't
hooked up. With this, the process handle tables become properly restricted.
In the case of metadata-less executables, the handle table will assume
the maximum size is requested, preserving the behavior that existed
before these changes.
Diffstat (limited to 'src/core/hle/kernel/process_capability.h')
| -rw-r--r-- | src/core/hle/kernel/process_capability.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process_capability.h b/src/core/hle/kernel/process_capability.h index fbc8812a3..5cdd80747 100644 --- a/src/core/hle/kernel/process_capability.h +++ b/src/core/hle/kernel/process_capability.h @@ -156,7 +156,7 @@ public: } /// Gets the number of total allowable handles for the process' handle table. - u32 GetHandleTableSize() const { + s32 GetHandleTableSize() const { return handle_table_size; } @@ -252,7 +252,7 @@ private: u64 core_mask = 0; u64 priority_mask = 0; - u32 handle_table_size = 0; + s32 handle_table_size = 0; u32 kernel_version = 0; ProgramType program_type = ProgramType::SysModule; |
