diff options
author | Liam <byteslice@airmail.cc> | 2023-12-18 21:38:50 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-23 03:52:49 +0100 |
commit | c57ae803a6e04f303c168292aaf727ccb61e5de2 (patch) | |
tree | 2f959b67638ab1134cfca19ac1f041552a68c335 /src/core/hle/kernel/k_client_port.cpp | |
parent | kernel: restrict nce to applications (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/core/hle/kernel/k_client_port.cpp | 4 |
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. |