From 30be94c67e89ac9cab25a36b5106658600db4af9 Mon Sep 17 00:00:00 2001 From: liduo Date: Tue, 27 Jan 2026 11:37:46 +0800 Subject: [PATCH] fix dump path Signed-off-by: liduo --- src/file_entry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {