Skip to content

Commit d32f369

Browse files
committed
Small fix for Windows in FileScanner
1 parent 484183a commit d32f369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/FileScanner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ FileScanner::get_directory_entries(const std::string &directory_path,
3939

4040
bool FileScanner::is_file_hidden(const fs::path &path) {
4141
#ifdef _WIN32
42-
DWORD attrs = GetFileAttributes(path.c_str());
42+
DWORD attrs = GetFileAttributesW(path.c_str());
4343
return (attrs != INVALID_FILE_ATTRIBUTES) && (attrs & FILE_ATTRIBUTE_HIDDEN);
4444
#endif
4545
return path.string().starts_with(".");

0 commit comments

Comments
 (0)