summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ipc_helpers.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-18 21:38:50 +0100
committerLiam <byteslice@airmail.cc>2023-12-23 03:52:49 +0100
commitc57ae803a6e04f303c168292aaf727ccb61e5de2 (patch)
tree2f959b67638ab1134cfca19ac1f041552a68c335 /src/core/hle/service/ipc_helpers.h
parentkernel: restrict nce to applications (diff)
downloadyuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.gz
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.bz2
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.lz
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.xz
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.zst
yuzu-c57ae803a6e04f303c168292aaf727ccb61e5de2.zip
Diffstat (limited to 'src/core/hle/service/ipc_helpers.h')
-rw-r--r--src/core/hle/service/ipc_helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/ipc_helpers.h b/src/core/hle/service/ipc_helpers.h
index 0e222362e..4b02872fb 100644
--- a/src/core/hle/service/ipc_helpers.h
+++ b/src/core/hle/service/ipc_helpers.h
@@ -151,8 +151,8 @@ public:
if (manager->IsDomain()) {
context->AddDomainObject(std::move(iface));
} else {
- kernel.ApplicationProcess()->GetResourceLimit()->Reserve(
- Kernel::LimitableResource::SessionCountMax, 1);
+ ASSERT(Kernel::GetCurrentProcess(kernel).GetResourceLimit()->Reserve(
+ Kernel::LimitableResource::SessionCountMax, 1));
auto* session = Kernel::KSession::Create(kernel);
session->Initialize(nullptr, 0);