summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
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/kernel
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/kernel')
-rw-r--r--src/core/hle/kernel/k_client_port.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_client_port.cpp b/src/core/hle/kernel/k_client_port.cpp
index 9b20c4d75..68cea978a 100644
--- a/src/core/hle/kernel/k_client_port.cpp
+++ b/src/core/hle/kernel/k_client_port.cpp
@@ -58,8 +58,8 @@ Result KClientPort::CreateSession(KClientSession** out) {
KSession* session{};
// Reserve a new session from the resource limit.
- KScopedResourceReservation session_reservation(
- GetCurrentProcessPointer(m_kernel)->GetResourceLimit(), LimitableResource::SessionCountMax);
+ KScopedResourceReservation session_reservation(GetCurrentProcessPointer(m_kernel),
+ LimitableResource::SessionCountMax);
R_UNLESS(session_reservation.Succeeded(), ResultLimitReached);
// Allocate a session normally.