mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-10 07:06:34 +00:00
strat: use sf/hipc results instead of magic numbers
This commit is contained in:
parent
29be429d2f
commit
84c4cd7c53
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 033c77716cece22ad1ee0d606f75c4659ff4ed76
|
Subproject commit 27164564a193e0a91aced93194c5e646585594e7
|
|
@ -231,7 +231,7 @@ Result Registration::GetServiceHandle(u64 pid, u64 service, Handle *out) {
|
||||||
Registration::Service *target_service = GetService(service);
|
Registration::Service *target_service = GetService(service);
|
||||||
if (target_service == NULL || ShouldInitDefer(service) || target_service->mitm_waiting_ack) {
|
if (target_service == NULL || ShouldInitDefer(service) || target_service->mitm_waiting_ack) {
|
||||||
/* Note: This defers the result until later. */
|
/* Note: This defers the result until later. */
|
||||||
return RESULT_DEFER_SESSION;
|
return ResultServiceFrameworkRequestDeferredByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
*out = 0;
|
*out = 0;
|
||||||
|
@ -467,7 +467,7 @@ Result Registration::InstallMitmForPid(u64 pid, u64 service, Handle *out, Handle
|
||||||
/* Verify the service exists. */
|
/* Verify the service exists. */
|
||||||
Registration::Service *target_service = GetService(service);
|
Registration::Service *target_service = GetService(service);
|
||||||
if (target_service == NULL) {
|
if (target_service == NULL) {
|
||||||
return RESULT_DEFER_SESSION;
|
return ResultServiceFrameworkRequestDeferredByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Verify the service isn't already being mitm'd. */
|
/* Verify the service isn't already being mitm'd. */
|
||||||
|
|
Loading…
Reference in a new issue