Просмотр исходного кода

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.
Billy Laws 5 лет назад
Родитель
Сommit
bab6eedccf
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Ryujinx.HLE/HOS/Services/Time/IStaticServiceForGlue.cs

+ 2 - 2
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);
         }
     }
-}
+}