Browse Source

time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshot

nce_cpp
Morph 5 years ago
parent
commit
bebb8afcbf
  1. 3
      src/core/hle/service/time/time.cpp

3
src/core/hle/service/time/time.cpp

@ -294,9 +294,10 @@ void Module::Interface::GetClockSnapshot(Kernel::HLERequestContext& ctx) {
return; return;
} }
ctx.WriteBuffer(clock_snapshot);
IPC::ResponseBuilder rb{ctx, 2}; IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);
ctx.WriteBuffer(clock_snapshot);
} }
void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) { void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) {

Loading…
Cancel
Save