diff options
| author | bunnei <bunneidev@gmail.com> | 2019-02-27 11:22:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-27 11:22:26 -0500 |
| commit | eb5a3dd1c7b4c69c708924208acd2077ff08308f (patch) | |
| tree | 2e7d700cd854170203772883d6b66b108c7a428e /src/core/hle/kernel/process_capability.cpp | |
| parent | be1a1584fca26837932be42374815282ba5767f5 (diff) | |
| parent | d29f9e9709b3cab6448b43f00f4f0204680ceee5 (diff) | |
Merge pull request #2161 from lioncash/handle-table
kernel/handle_table: Allow process capabilities to limit the handle table size
Diffstat (limited to 'src/core/hle/kernel/process_capability.cpp')
| -rw-r--r-- | src/core/hle/kernel/process_capability.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process_capability.cpp b/src/core/hle/kernel/process_capability.cpp index 3a2164b25..583e35b79 100644 --- a/src/core/hle/kernel/process_capability.cpp +++ b/src/core/hle/kernel/process_capability.cpp @@ -96,7 +96,7 @@ void ProcessCapabilities::InitializeForMetadatalessProcess() { interrupt_capabilities.set(); // Allow using the maximum possible amount of handles - handle_table_size = static_cast<u32>(HandleTable::MAX_COUNT); + handle_table_size = static_cast<s32>(HandleTable::MAX_COUNT); // Allow all debugging capabilities. is_debuggable = true; @@ -337,7 +337,7 @@ ResultCode ProcessCapabilities::HandleHandleTableFlags(u32 flags) { return ERR_RESERVED_VALUE; } - handle_table_size = (flags >> 16) & 0x3FF; + handle_table_size = static_cast<s32>((flags >> 16) & 0x3FF); return RESULT_SUCCESS; } |
