diff options
| author | Liam <byteslice@airmail.cc> | 2022-10-26 17:32:14 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-10-31 17:45:45 -0400 |
| commit | 7aa91c8d9ceb21e631e52c7ac30e47af2ec5a089 (patch) | |
| tree | 4ee0df95a65d98dd7e6b519c9aab13ab963a8c18 /src/core/hle/service/sm/sm_controller.cpp | |
| parent | 7837185f0ab54f76aa57c65676b10179465fe42d (diff) | |
k_server_session: add SendReplyHLE
Diffstat (limited to 'src/core/hle/service/sm/sm_controller.cpp')
| -rw-r--r-- | src/core/hle/service/sm/sm_controller.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp index 940c33478..69e0fe808 100644 --- a/src/core/hle/service/sm/sm_controller.cpp +++ b/src/core/hle/service/sm/sm_controller.cpp @@ -33,16 +33,13 @@ void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) { // FIXME: this is duplicated from the SVC, it should just call it instead // once this is a proper process - // Declare the session we're going to allocate. - Kernel::KSession* session; - // Reserve a new session from the process resource limit. Kernel::KScopedResourceReservation session_reservation(&process, Kernel::LimitableResource::Sessions); ASSERT(session_reservation.Succeeded()); // Create the session. - session = Kernel::KSession::Create(system.Kernel()); + Kernel::KSession* session = Kernel::KSession::Create(system.Kernel()); ASSERT(session != nullptr); // Initialize the session. |
