mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-17 23:07:54 +00:00
kernel: fix resource limit imbalance
This commit is contained in:
parent
a7ff872a4c
commit
3d08a55a87
3 changed files with 7 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue