From ac966e4213c4a60af01fa99eec8427674a569cf0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 4 Dec 2018 01:40:16 -0500 Subject: kernel/handle_table: Amend reference to CTR-OS in Create() Another hold-over from Citra. --- src/core/hle/kernel/handle_table.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/hle/kernel') diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index 1bf79b692..c8acde5b1 100644 --- a/src/core/hle/kernel/handle_table.cpp +++ b/src/core/hle/kernel/handle_table.cpp @@ -42,9 +42,10 @@ ResultVal HandleTable::Create(SharedPtr obj) { u16 generation = next_generation++; // Overflow count so it fits in the 15 bits dedicated to the generation in the handle. - // CTR-OS doesn't use generation 0, so skip straight to 1. - if (next_generation >= (1 << 15)) + // Horizon OS uses zero to represent an invalid handle, so skip to 1. + if (next_generation >= (1 << 15)) { next_generation = 1; + } generations[slot] = generation; objects[slot] = std::move(obj); -- cgit v1.2.3