diff options
| author | 2021-11-02 22:04:20 -0400 | |
|---|---|---|
| committer | 2021-11-02 22:31:04 -0400 | |
| commit | b871388a31af0194d785d9cf26ce963f169a067c (patch) | |
| tree | 366d8b1c68b27939d86b95c308989b877618c7aa /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #7262 from FernandoS27/Buffalo-buffalo-Buffalo-buffalo-buf... (diff) | |
| download | yuzu-b871388a31af0194d785d9cf26ce963f169a067c.tar.gz yuzu-b871388a31af0194d785d9cf26ce963f169a067c.tar.xz yuzu-b871388a31af0194d785d9cf26ce963f169a067c.zip | |
svc: Correct WaitSynchronization num_handles param type
num_handles is a s32
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
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, | |||
| 409 | 409 | ||
| 410 | /// Wait for the given handles to synchronize, timeout after the specified nanoseconds | 410 | /// Wait for the given handles to synchronize, timeout after the specified nanoseconds |
| 411 | static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr handles_address, | 411 | static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr handles_address, |
| 412 | u64 num_handles, s64 nano_seconds) { | 412 | s32 num_handles, s64 nano_seconds) { |
| 413 | LOG_TRACE(Kernel_SVC, "called handles_address=0x{:X}, num_handles={}, nano_seconds={}", | 413 | LOG_TRACE(Kernel_SVC, "called handles_address=0x{:X}, num_handles={}, nano_seconds={}", |
| 414 | handles_address, num_handles, nano_seconds); | 414 | handles_address, num_handles, nano_seconds); |
| 415 | 415 | ||
| @@ -434,7 +434,7 @@ static ResultCode WaitSynchronization(Core::System& system, s32* index, VAddr ha | |||
| 434 | 434 | ||
| 435 | // Ensure handles are closed when we're done. | 435 | // Ensure handles are closed when we're done. |
| 436 | SCOPE_EXIT({ | 436 | SCOPE_EXIT({ |
| 437 | for (u64 i = 0; i < num_handles; ++i) { | 437 | for (s32 i = 0; i < num_handles; ++i) { |
| 438 | kernel.UnregisterInUseObject(objs[i]); | 438 | kernel.UnregisterInUseObject(objs[i]); |
| 439 | objs[i]->Close(); | 439 | objs[i]->Close(); |
| 440 | } | 440 | } |