summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/acc.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-21 16:04:28 +0200
committerLioncash <mathew1800@gmail.com>2019-06-21 16:04:31 +0200
commit82cd87f6c25d4aa053babdcf7a7eae38eea8b623 (patch)
treeb7b91ac1c1b0cc985e26ef3028176af021d29d44 /src/core/hle/service/acc/acc.cpp
parentMerge pull request #2596 from FernandoS27/revert-2590 (diff)
downloadyuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar.gz
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar.bz2
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar.lz
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar.xz
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.tar.zst
yuzu-82cd87f6c25d4aa053babdcf7a7eae38eea8b623.zip
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
-rw-r--r--src/core/hle/service/acc/acc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 025714e5a..0cd8158df 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -94,7 +94,7 @@ private:
LOG_WARNING(Service_ACC,
"Failed to load user provided image! Falling back to built-in backup...");
ctx.WriteBuffer(Core::Constants::ACCOUNT_BACKUP_JPEG);
- rb.Push<u32>(Core::Constants::ACCOUNT_BACKUP_JPEG.size());
+ rb.Push(SanitizeJPEGSize(Core::Constants::ACCOUNT_BACKUP_JPEG.size()));
return;
}
@@ -116,9 +116,9 @@ private:
if (!image.IsOpen()) {
LOG_WARNING(Service_ACC,
"Failed to load user provided image! Falling back to built-in backup...");
- rb.Push<u32>(Core::Constants::ACCOUNT_BACKUP_JPEG.size());
+ rb.Push(SanitizeJPEGSize(Core::Constants::ACCOUNT_BACKUP_JPEG.size()));
} else {
- rb.Push<u32>(SanitizeJPEGSize(image.GetSize()));
+ rb.Push(SanitizeJPEGSize(image.GetSize()));
}
}