From: fincs Date: Fri, 6 Nov 2015 19:39:41 +0000 (+0100) Subject: Fix #204 X-Git-Tag: v1.0.0~33^2 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=6a7f13654da6024c97a5f5792350f1181c173fa1;p=corbenik%2Fctrulib.git Fix #204 --- diff --git a/libctru/source/romfs_dev.c b/libctru/source/romfs_dev.c index 31e1263..27f5ef7 100644 --- a/libctru/source/romfs_dev.c +++ b/libctru/source/romfs_dev.c @@ -137,7 +137,7 @@ Result romfsInit(void) __utf16path[units] = 0; FS_archive arch = { ARCH_SDMC, { PATH_EMPTY, 1, (u8*)"" }, 0, 0 }; - FS_path path = { PATH_WCHAR, units+1, (u8*)__utf16path }; + FS_path path = { PATH_WCHAR, (units+1)*2, (u8*)__utf16path }; Result rc = FSUSER_OpenFileDirectly(NULL, &romFS_file, arch, path, FS_OPEN_READ, FS_ATTRIBUTE_NONE); if (rc) return rc;