diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-16 07:34:55 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-21 06:40:30 +0200 |
commit | c40e7593f5531884ac91add3d8743b9c08e5535f (patch) | |
tree | 0d2def92d7e9b9a961a373188edfde1a4c76e313 /src/core/hle/service | |
parent | Merge pull request #6320 from Morph1984/get-pid (diff) | |
download | yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar.gz yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar.bz2 yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar.lz yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar.xz yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.tar.zst yuzu-c40e7593f5531884ac91add3d8743b9c08e5535f.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 8cc9aee8a..391db48b1 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -158,15 +158,15 @@ ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext& auto* port = result.Unwrap(); - // Kernel::KScopedResourceReservation session_reservation( - // kernel.CurrentProcess()->GetResourceLimit(), Kernel::LimitableResource::Sessions); - // R_UNLESS(session_reservation.Succeeded(), Kernel::ResultLimitReached); + Kernel::KScopedResourceReservation session_reservation( + kernel.CurrentProcess()->GetResourceLimit(), Kernel::LimitableResource::Sessions); + R_UNLESS(session_reservation.Succeeded(), Kernel::ResultLimitReached); auto* session = Kernel::KSession::Create(kernel); session->Initialize(&port->GetClientPort(), std::move(name)); // Commit the session reservation. - // session_reservation.Commit(); + session_reservation.Commit(); if (port->GetServerPort().GetHLEHandler()) { port->GetServerPort().GetHLEHandler()->ClientConnected(&session->GetServerSession()); |