[Kernel::WaitSyncN] Panic on handleCount == 0
This commit is contained in:
@@ -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*>;
|
||||||
|
|||||||
Reference in New Issue
Block a user