summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time_zone_service.cpp
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2020-08-03 13:28:54 +0200
committerGitHub <noreply@github.com>2020-08-03 13:28:54 +0200
commit9b75481755c8d566bc666465d659115bba2b2578 (patch)
tree309d0ff37c8e68d178b65861abeb3bb0e8387f43 /src/core/hle/service/time/time_zone_service.cpp
parentMerge pull request #4263 from lat9nq/fix-screencaps-2 (diff)
downloadyuzu-9b75481755c8d566bc666465d659115bba2b2578.tar
yuzu-9b75481755c8d566bc666465d659115bba2b2578.tar.gz
yuzu-9b75481755c8d566bc666465d659115bba2b2578.tar.bz2
yuzu-9b75481755c8d566bc666465d659115bba2b2578.tar.lz
yuzu-9b75481755c8d566bc666465d659115bba2b2578.tar.xz
yuzu-9b75481755c8d566bc666465d659115bba2b2578.tar.zst
yuzu-9b75481755c8d566bc666465d659115bba2b2578.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/time_zone_service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/time/time_zone_service.cpp b/src/core/hle/service/time/time_zone_service.cpp
index db57ae069..ff3a10b3e 100644
--- a/src/core/hle/service/time/time_zone_service.cpp
+++ b/src/core/hle/service/time/time_zone_service.cpp
@@ -142,7 +142,7 @@ void ITimeZoneService::ToPosixTime(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.PushRaw<u32>(1); // Number of times we're returning
- ctx.WriteBuffer(&posix_time, sizeof(s64));
+ ctx.WriteBuffer(posix_time);
}
void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) {
@@ -164,7 +164,7 @@ void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.PushRaw<u32>(1); // Number of times we're returning
- ctx.WriteBuffer(&posix_time, sizeof(s64));
+ ctx.WriteBuffer(posix_time);
}
} // namespace Service::Time