diff --git a/file.c b/file.c index 87b3e9b0f2..b4286003e1 100644 --- a/file.c +++ b/file.c @@ -937,7 +937,7 @@ void dir_list_free(char **dir_list) bool path_is_directory(const char *path) { #ifdef _WIN32 - return PathIsDirectory(buf) == FILE_ATTRIBUTE_DIRECTORY; + return PathIsDirectory(path) == FILE_ATTRIBUTE_DIRECTORY; #elif defined(__CELLOS_LV2__) return false; // STUB #elif defined(XENON)