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.
This commit is contained in:
Billy Laws 2021-03-04 10:58:21 +00:00 committed by GitHub
parent ca5d8e58dd
commit bab6eedccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
// SetStandardSteadyClockInternalOffset(nn::TimeSpanType internal_offset) // SetStandardSteadyClockInternalOffset(nn::TimeSpanType internal_offset)
public ResultCode SetStandardSteadyClockInternalOffset(ServiceCtx context) public ResultCode SetStandardSteadyClockInternalOffset(ServiceCtx context)
{ {
if ((_permissions & TimePermissions.BypassUninitialized) == 0) if ((_permissions & TimePermissions.SteadyClockWritableMask) == 0)
{ {
return ResultCode.PermissionDenied; return ResultCode.PermissionDenied;
} }