summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-11-03 11:59:07 +0100
committerGitHub <noreply@github.com>2021-11-03 11:59:07 +0100
commit863e2e2b4f81dc09d878b53572025b4687413830 (patch)
tree366d8b1c68b27939d86b95c308989b877618c7aa /src/core/hle/kernel/svc.cpp
parentMerge pull request #7262 from FernandoS27/Buffalo-buffalo-Buffalo-buffalo-buffalo (diff)
parentsvc: Correct WaitSynchronization num_handles param type (diff)
downloadyuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar.gz
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar.bz2
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar.lz
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar.xz
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.tar.zst
yuzu-863e2e2b4f81dc09d878b53572025b4687413830.zip
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index c43135856..f328ce111 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -409,7 +409,7 @@ static ResultCode GetProcessId32(Core::System& system, u32* out_process_id_low,
/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr handles_address,
- u64 num_handles, s64 nano_seconds) {
+ s32 num_handles, s64 nano_seconds) {
LOG_TRACE(Kernel_SVC, "called handles_address=0x{:X}, num_handles={}, nano_seconds={}",
handles_address, num_handles, nano_seconds);
@@ -434,7 +434,7 @@ static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr ha
// Ensure handles are closed when we're done.
SCOPE_EXIT({
- for (u64 i = 0; i < num_handles; ++i) {
+ for (s32 i = 0; i < num_handles; ++i) {
kernel.UnregisterInUseObject(objs[i]);
objs[i]->Close();
}