diff --git a/src/file_entry.cpp b/src/file_entry.cpp index c95fc37..c1b5de8 100644 --- a/src/file_entry.cpp +++ b/src/file_entry.cpp @@ -117,7 +117,9 @@ const FileEntry::FilePath &FileEntry::GetFilePath() const bool FileEntry::Exist(const string &path) { #ifdef _WIN32 - return PathFileExistsW(AdaptLongPathW(path).c_str()); + if (!PathFileExists(AdaptLongPath(path).c_str())) { + return PathFileExistsW(AdaptLongPathW(path).c_str()); + } #else struct stat s; if (stat(path.c_str(), &s) != 0) {