diff options
| author | 2021-04-19 12:09:18 -0400 | |
|---|---|---|
| committer | 2021-04-19 12:09:28 -0400 | |
| commit | 8285776603a968b8d0068bb1f2006ce2ecb8a972 (patch) | |
| tree | ac346677627d770737daa8d3b6a0ef3e08ec9ded /src | |
| parent | time: Fix GetClockSnapshotFromSystemClockContext (diff) | |
| download | yuzu-8285776603a968b8d0068bb1f2006ce2ecb8a972.tar.gz yuzu-8285776603a968b8d0068bb1f2006ce2ecb8a972.tar.xz yuzu-8285776603a968b8d0068bb1f2006ce2ecb8a972.zip | |
time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshot
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 8427555e9..32f372d71 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -294,9 +294,10 @@ 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 | ||
| 302 | void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) { | 303 | void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) { |