3DS: Fix filename decoding with UTF-16 names
Jeffrey Pfau jeffrey@endrift.com
Sun, 01 Nov 2015 09:14:45 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/3ds/3ds-vfs.c
→
src/platform/3ds/3ds-vfs.c
@@ -257,7 +257,7 @@
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; }