diff options
Diffstat (limited to 'Ryujinx.Horizon/Sm/Impl/ServiceManager.cs')
-rw-r--r-- | Ryujinx.Horizon/Sm/Impl/ServiceManager.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Ryujinx.Horizon/Sm/Impl/ServiceManager.cs b/Ryujinx.Horizon/Sm/Impl/ServiceManager.cs index cdf2d17f..44a1ec46 100644 --- a/Ryujinx.Horizon/Sm/Impl/ServiceManager.cs +++ b/Ryujinx.Horizon/Sm/Impl/ServiceManager.cs @@ -107,8 +107,8 @@ namespace Ryujinx.Horizon.Sm.Impl return result; } - freeService.PortHandle = clientPort; - freeService.Name = name; + freeService.PortHandle = clientPort; + freeService.Name = name; freeService.OwnerProcessId = processId; return Result.Success; @@ -126,20 +126,19 @@ namespace Ryujinx.Horizon.Sm.Impl // TODO: Validation with GetProcessInfo etc. int serviceIndex = GetServiceInfo(name); - if (serviceIndex < 0) { return SmResult.NotRegistered; } ref var serviceInfo = ref _services[serviceIndex]; - if (serviceInfo.OwnerProcessId != processId) { return SmResult.NotAllowed; } serviceInfo.Free(); + return Result.Success; } @@ -194,4 +193,4 @@ namespace Ryujinx.Horizon.Sm.Impl return -1; } } -} +}
\ No newline at end of file |