Don't use unicode.

This commit is contained in:
Themaister 2012-01-05 17:27:48 +01:00
parent 0b62771b54
commit f70b52a0df

5
file.c
View File

@ -937,10 +937,7 @@ void dir_list_free(char **dir_list)
bool path_is_directory(const char *path)
{
#ifdef _WIN32
wchar_t buf[PATH_MAX];
if (MultiByteToWideChar(CP_UTF8, 0, path, -1, buf, PATH_MAX) == 0)
return false;
return PathIsDirectoryW(buf) == FILE_ATTRIBUTE_DIRECTORY;
return PathIsDirectory(buf) == FILE_ATTRIBUTE_DIRECTORY;
#elif defined(__CELLOS_LV2__)
return false; // STUB
#elif defined(XENON)