mirror of
https://github.com/libretro/RetroArch
synced 2025-01-25 06:35:30 +00:00
Small fix.
This commit is contained in:
parent
a3ee8c8849
commit
3c58d10eae
2
file.c
2
file.c
@ -850,7 +850,7 @@ char** dir_list_new(const char *dir, const char *ext)
|
||||
#ifdef _WIN32
|
||||
if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
continue;
|
||||
if (WideCharToMultiByte(CP_UTF8, 0, ffd.cFileName, -1, utf8_buf, MAX_PATH, NULL, NULL) == 0)
|
||||
if (WideCharToMultiByte(CP_UTF8, 0, ffd.cFileName, -1, utf8_buf, MAXPATHLEN, NULL, NULL) == 0)
|
||||
continue;
|
||||
if (ext && !strstr(utf8_buf, ext))
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user