summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-21 20:17:58 +0200
committerGitHub <noreply@github.com>2021-04-21 20:17:58 +0200
commitf0c2190ceb3879f3a6d3fcafbb9ddb25954192ae (patch)
tree116fb206df64f56269bcb99fdd3584a0d29d21de
parentMerge pull request #6219 from lioncash/log-erase (diff)
parenttime: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshot (diff)
downloadyuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar.gz
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar.bz2
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar.lz
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar.xz
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.tar.zst
yuzu-f0c2190ceb3879f3a6d3fcafbb9ddb25954192ae.zip
-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) {
return;
}
+ ctx.WriteBuffer(clock_snapshot);
+
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
- ctx.WriteBuffer(clock_snapshot);
}
void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto type{rp.PopEnum<Clock::TimeType>()};
- rp.AlignWithPadding();
+ rp.Skip(1, false);
const Clock::SystemClockContext user_context{rp.PopRaw<Clock::SystemClockContext>()};
const Clock::SystemClockContext network_context{rp.PopRaw<Clock::SystemClockContext>()};
@@ -319,9 +320,10 @@ void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLEReques
return;
}
+ ctx.WriteBuffer(clock_snapshot);
+
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
- ctx.WriteBuffer(clock_snapshot);
}
void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(