mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +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
|
#ifdef _WIN32
|
||||||
if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||||
continue;
|
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;
|
continue;
|
||||||
if (ext && !strstr(utf8_buf, ext))
|
if (ext && !strstr(utf8_buf, ext))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user