From 84c4cd7c53380331d3899e7a587b1a77d2679361 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 28 Mar 2019 20:00:16 -0700 Subject: [PATCH] strat: use sf/hipc results instead of magic numbers --- stratosphere/libstratosphere | 2 +- stratosphere/sm/source/sm_registration.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stratosphere/libstratosphere b/stratosphere/libstratosphere index 033c77716..27164564a 160000 --- a/stratosphere/libstratosphere +++ b/stratosphere/libstratosphere @@ -1 +1 @@ -Subproject commit 033c77716cece22ad1ee0d606f75c4659ff4ed76 +Subproject commit 27164564a193e0a91aced93194c5e646585594e7 diff --git a/stratosphere/sm/source/sm_registration.cpp b/stratosphere/sm/source/sm_registration.cpp index 08d346ec9..dfda9ac9d 100644 --- a/stratosphere/sm/source/sm_registration.cpp +++ b/stratosphere/sm/source/sm_registration.cpp @@ -231,7 +231,7 @@ Result Registration::GetServiceHandle(u64 pid, u64 service, Handle *out) { Registration::Service *target_service = GetService(service); if (target_service == NULL || ShouldInitDefer(service) || target_service->mitm_waiting_ack) { /* Note: This defers the result until later. */ - return RESULT_DEFER_SESSION; + return ResultServiceFrameworkRequestDeferredByUser; } *out = 0; @@ -467,7 +467,7 @@ Result Registration::InstallMitmForPid(u64 pid, u64 service, Handle *out, Handle /* Verify the service exists. */ Registration::Service *target_service = GetService(service); if (target_service == NULL) { - return RESULT_DEFER_SESSION; + return ResultServiceFrameworkRequestDeferredByUser; } /* Verify the service isn't already being mitm'd. */