mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
[Kernel::WaitSyncN] Panic on handleCount == 0
This commit is contained in:
parent
4ed1cf234b
commit
1d06a31113
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ void Kernel::waitSynchronizationN() {
|
||||||
|
|
||||||
logSVC("WaitSynchronizationN (handle pointer: %08X, count: %d, timeout = %lld)\n", handles, handleCount, ns);
|
logSVC("WaitSynchronizationN (handle pointer: %08X, count: %d, timeout = %lld)\n", handles, handleCount, ns);
|
||||||
|
|
||||||
if (handleCount < 0)
|
if (handleCount <= 0)
|
||||||
Helpers::panic("WaitSyncN: Invalid handle count");
|
Helpers::panic("WaitSyncN: Invalid handle count");
|
||||||
|
|
||||||
using WaitObject = std::pair<Handle, KernelObject*>;
|
using WaitObject = std::pair<Handle, KernelObject*>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue