diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-18 20:33:11 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-22 02:47:46 +0100 |
commit | 9412996c8f86f5da5a9052f7533b05e9780c4eb0 (patch) | |
tree | af0ddc0b464d92c7e13664f6f435c5de6c36301a /src/core/hle/svc.cpp | |
parent | SVC: Removed a Sleep that made no sense (diff) | |
download | yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar.gz yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar.bz2 yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar.lz yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar.xz yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.tar.zst yuzu-9412996c8f86f5da5a9052f7533b05e9780c4eb0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 5e9c38973..8df861669 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -115,7 +115,7 @@ static Result CloseHandle(Handle handle) { /// Wait for a handle to synchronize, timeout after the specified nanoseconds static Result WaitSynchronization1(Handle handle, s64 nano_seconds) { - Kernel::WaitObject* object = static_cast<Kernel::WaitObject*>(Kernel::g_handle_table.GetGeneric(handle).get()); + auto object = Kernel::g_handle_table.GetWaitObject(handle); if (object == nullptr) return InvalidHandle(ErrorModule::Kernel).raw; @@ -163,7 +163,7 @@ static Result WaitSynchronizationN(s32* out, Handle* handles, s32 handle_count, if (handle_count != 0) { bool selected = false; // True once an object has been selected for (int i = 0; i < handle_count; ++i) { - Kernel::WaitObject* object = static_cast<Kernel::WaitObject*>(Kernel::g_handle_table.GetGeneric(handles[i]).get()); + auto object = Kernel::g_handle_table.GetWaitObject(handles[i]); if (object == nullptr) return InvalidHandle(ErrorModule::Kernel).raw; |