summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/time/time.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index 63e0247de..32f372d71 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -294,16 +294,17 @@ void Module::Interface::GetClockSnapshot(Kernel::HLERequestContext& ctx) {
294 return; 294 return;
295 } 295 }
296 296
297 ctx.WriteBuffer(clock_snapshot);
298
297 IPC::ResponseBuilder rb{ctx, 2}; 299 IPC::ResponseBuilder rb{ctx, 2};
298 rb.Push(RESULT_SUCCESS); 300 rb.Push(RESULT_SUCCESS);
299 ctx.WriteBuffer(clock_snapshot);
300} 301}
301 302
302void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) { 303void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) {
303 IPC::RequestParser rp{ctx}; 304 IPC::RequestParser rp{ctx};
304 const auto type{rp.PopEnum<Clock::TimeType>()}; 305 const auto type{rp.PopEnum<Clock::TimeType>()};
305 306
306 rp.AlignWithPadding(); 307 rp.Skip(1, false);
307 308
308 const Clock::SystemClockContext user_context{rp.PopRaw<Clock::SystemClockContext>()}; 309 const Clock::SystemClockContext user_context{rp.PopRaw<Clock::SystemClockContext>()};
309 const Clock::SystemClockContext network_context{rp.PopRaw<Clock::SystemClockContext>()}; 310 const Clock::SystemClockContext network_context{rp.PopRaw<Clock::SystemClockContext>()};
@@ -319,9 +320,10 @@ void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLEReques
319 return; 320 return;
320 } 321 }
321 322
323 ctx.WriteBuffer(clock_snapshot);
324
322 IPC::ResponseBuilder rb{ctx, 2}; 325 IPC::ResponseBuilder rb{ctx, 2};
323 rb.Push(RESULT_SUCCESS); 326 rb.Push(RESULT_SUCCESS);
324 ctx.WriteBuffer(clock_snapshot);
325} 327}
326 328
327void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser( 329void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(