add result unknown for handle

This commit is contained in:
Maufeat 2025-07-24 23:11:12 +02:00 committed by crueter
parent 003a238e1f
commit f71343e5bb

View file

@ -53,6 +53,9 @@ Result IHOSBinderDriver::GetNativeHandle(s32 binder_id, u32 type_id,
const auto binder = m_server->TryGetBinder(binder_id);
R_UNLESS(binder != nullptr, ResultUnknown);
auto native_handle = binder->GetNativeHandle(type_id);
R_UNLESS(native_handle != nullptr, ResultUnknown);
*out_handle = binder->GetNativeHandle(type_id);
R_SUCCEED();