summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_audio.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-09 20:41:33 -0400
committerLioncash <mathew1800@gmail.com>2019-05-09 21:28:36 -0400
commitc823cf6594c2ed8f69c84cabb9ed307496a55eff (patch)
tree7bd3aac7e6c5cce1a136cc518e1c6c342e70c342 /src/yuzu/configuration/configure_audio.cpp
parent7cb17834c76df6fc394d8b1b29e8f752f966710b (diff)
service/set: Correct and simplify behavior related to copying language codes
This corrects cases where it was possible to write more entries into the write buffer than were requested. Now, we check the size of the buffer before actually writing into them. We were also returning the wrong value for GetAvailableLanguageCodeCount2(). This was previously returning 64, but only 17 should have been returned. 64 entries is the size of the static array used in MakeLanguageCode() within the service binary itself, but isn't the actual total number of language codes present.
Diffstat (limited to 'src/yuzu/configuration/configure_audio.cpp')
0 files changed, 0 insertions, 0 deletions