mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +12:00
Merge pull request #222 from wheremyfoodat/wheremyfoodat-patch-4
Make SendSyncRequest warn instead of panic on invalid handles
This commit is contained in:
commit
bc47fe8f83
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ void Kernel::sendSyncRequest() {
|
||||||
// If we're actually communicating with a port
|
// If we're actually communicating with a port
|
||||||
const auto session = getObject(handle, KernelObjectType::Session);
|
const auto session = getObject(handle, KernelObjectType::Session);
|
||||||
if (session == nullptr) [[unlikely]] {
|
if (session == nullptr) [[unlikely]] {
|
||||||
Helpers::panic("SendSyncRequest: Invalid handle");
|
Helpers::warn("SendSyncRequest: Invalid handle");
|
||||||
regs[0] = Result::Kernel::InvalidHandle;
|
regs[0] = Result::Kernel::InvalidHandle;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue