summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-19 15:57:56 -0400
committerGravatar Lioncash2018-07-19 15:57:58 -0400
commitdf001e83b19adda1d586d6dc4125d56aba1324d6 (patch)
tree496c9c6e4db95ffb606910a87fe69a72b93fce36 /src
parentMerge pull request #714 from lioncash/index (diff)
downloadyuzu-df001e83b19adda1d586d6dc4125d56aba1324d6.tar.gz
yuzu-df001e83b19adda1d586d6dc4125d56aba1324d6.tar.xz
yuzu-df001e83b19adda1d586d6dc4125d56aba1324d6.zip
pl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority()
This WriteBuffer overload expects its size argument to be in bytes, not elements.
Diffstat (limited to '')
-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 d6a12ede5..9b6f400e9 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) {
132 font_sizes.push_back(SHARED_FONT_REGIONS[i].size); 132 font_sizes.push_back(SHARED_FONT_REGIONS[i].size);
133 } 133 }
134 134
135 ctx.WriteBuffer(font_codes.data(), font_codes.size(), 0); 135 ctx.WriteBuffer(font_codes.data(), font_codes.size() * sizeof(u32), 0);
136 ctx.WriteBuffer(font_offsets.data(), font_offsets.size(), 1); 136 ctx.WriteBuffer(font_offsets.data(), font_offsets.size() * sizeof(u32), 1);
137 ctx.WriteBuffer(font_sizes.data(), font_sizes.size(), 2); 137 ctx.WriteBuffer(font_sizes.data(), font_sizes.size() * sizeof(u32), 2);
138 138
139 rb.Push(RESULT_SUCCESS); 139 rb.Push(RESULT_SUCCESS);
140 rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded 140 rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded