From 3c58d10eae4aeb92db5b379070a2a13f930d415e Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 20 Sep 2011 12:05:21 +0200 Subject: [PATCH] Small fix. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index dc14bb2eb7..57285c21b0 100644 --- a/file.c +++ b/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;