3DS: Fix filename decoding with UTF-16 names

This commit is contained in:
Jeffrey Pfau 2015-11-01 09:14:45 -08:00
parent f00380abb9
commit b99b680ca2
1 changed files with 1 additions and 1 deletions
src/platform/3ds

View File

@ -257,7 +257,7 @@ static struct VDir* _vd3dOpenDir(struct VDir* vd, const char* path) {
static const char* _vd3deName(struct VDirEntry* vde) {
struct VDirEntry3DS* vd3de = (struct VDirEntry3DS*) vde;
if (!vd3de->utf8Name[0]) {
utf16_to_utf8(vd3de->utf8Name, vd3de->ent.name, sizeof(vd3de->ent.name));
utf16_to_utf8(vd3de->utf8Name, vd3de->ent.name, sizeof(vd3de->utf8Name));
}
return vd3de->utf8Name;
}