kern: update port/session state semantics
This commit is contained in:
1 parent
c62a7381f8
commit
cbdf33260e
7 files changed
+32
-11
No files matched your search
@@ -47,6 +47,9 @@ namespace ams::kern {
|
||||
Derived *derived = obj->DynamicCast<Derived *>();
|
||||
R_UNLESS(derived != nullptr, svc::ResultNotFound());
|
||||
|
||||
/* Check that the object is closed. */
|
||||
R_UNLESS(derived->IsServerClosed(), svc::ResultInvalidState());
|
||||
|
||||
return Delete(obj.GetPointerUnsafe(), name);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user