summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 30230d65a..243c54c6e 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -244,7 +244,7 @@ static ResultCode CloseHandle(Kernel::Handle handle) {
244 244
245/// Wait for a handle to synchronize, timeout after the specified nanoseconds 245/// Wait for a handle to synchronize, timeout after the specified nanoseconds
246static ResultCode WaitSynchronization1(Kernel::Handle handle, s64 nano_seconds) { 246static ResultCode WaitSynchronization1(Kernel::Handle handle, s64 nano_seconds) {
247 auto object = Kernel::g_handle_table.GetWaitObject(handle); 247 auto object = Kernel::g_handle_table.Get<Kernel::WaitObject>(handle);
248 Kernel::Thread* thread = Kernel::GetCurrentThread(); 248 Kernel::Thread* thread = Kernel::GetCurrentThread();
249 249
250 if (object == nullptr) 250 if (object == nullptr)
@@ -299,7 +299,7 @@ static ResultCode WaitSynchronizationN(s32* out, Kernel::Handle* handles, s32 ha
299 std::vector<ObjectPtr> objects(handle_count); 299 std::vector<ObjectPtr> objects(handle_count);
300 300
301 for (int i = 0; i < handle_count; ++i) { 301 for (int i = 0; i < handle_count; ++i) {
302 auto object = Kernel::g_handle_table.GetWaitObject(handles[i]); 302 auto object = Kernel::g_handle_table.Get<Kernel::WaitObject>(handles[i]);
303 if (object == nullptr) 303 if (object == nullptr)
304 return ERR_INVALID_HANDLE; 304 return ERR_INVALID_HANDLE;
305 objects[i] = object; 305 objects[i] = object;