summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-20 01:16:30 +0200
committerGitHub <noreply@github.com>2018-07-20 01:16:30 +0200
commit0b13ce143530f91f8b200dafd6388600bdc56c10 (patch)
tree57e4c42d9cb2c4181c86677d98a734f95952a2ec /src/core/hle/service
parentMerge pull request #728 from Subv/acc_profile (diff)
parentpl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority() (diff)
downloadyuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar.gz
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar.bz2
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar.lz
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar.xz
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.tar.zst
yuzu-0b13ce143530f91f8b200dafd6388600bdc56c10.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/ns/pl_u.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cpp
index addf1087c..d4e0f615a 100644
--- a/src/core/hle/service/ns/pl_u.cpp
+++ b/src/core/hle/service/ns/pl_u.cpp
@@ -132,9 +132,9 @@ void PL_U::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) {
font_sizes.push_back(SHARED_FONT_REGIONS[i].size);
}
- ctx.WriteBuffer(font_codes.data(), font_codes.size(), 0);
- ctx.WriteBuffer(font_offsets.data(), font_offsets.size(), 1);
- ctx.WriteBuffer(font_sizes.data(), font_sizes.size(), 2);
+ ctx.WriteBuffer(font_codes.data(), font_codes.size() * sizeof(u32), 0);
+ ctx.WriteBuffer(font_offsets.data(), font_offsets.size() * sizeof(u32), 1);
+ ctx.WriteBuffer(font_sizes.data(), font_sizes.size() * sizeof(u32), 2);
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded