aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2021-03-04 10:58:21 +0000
committerGitHub <noreply@github.com>2021-03-04 11:58:21 +0100
commitbab6eedccfa86bc92d87b65efd965621002b8921 (patch)
tree6cbdf8b2bc3aa30a0ca01930b37ac3d68469c28c
parentca5d8e58ddd0c089763645efcc58b5dc6614f8eb (diff)
Fix SetStandardSteadyClockInternalOffset permission check (#2076)
I happened to notice this when checking Ryu's IPC structures. After double checking with RE it seems the current check is incorrect so use the correct member to fix that.
-rw-r--r--Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs
index d92cb726..abe09f5e 100644
--- a/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs
+++ b/Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs
@@ -78,7 +78,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
// SetStandardSteadyClockInternalOffset(nn::TimeSpanType internal_offset)
public ResultCode SetStandardSteadyClockInternalOffset(ServiceCtx context)
{
- if ((_permissions & TimePermissions.BypassUninitialized) == 0)
+ if ((_permissions & TimePermissions.SteadyClockWritableMask) == 0)
{
return ResultCode.PermissionDenied;
}
@@ -181,4 +181,4 @@ namespace Ryujinx.HLE.HOS.Services.Time
return _inner.CalculateSpanBetween(context);
}
}
-} \ No newline at end of file
+}