Skip to content

Commit

Permalink
Don't set case sensitive flag when reading directories on newer Windo…
Browse files Browse the repository at this point in the history
…ws versions.

This fixes DDoSolitary#150.
  • Loading branch information
DDoSolitary committed Nov 2, 2020
1 parent c8200f2 commit fdab71a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ void enum_directory(file_path &path, const bool rootfs_first, std::function<void
std::function<void(bool)> enum_rec;
enum_rec = [&](const bool is_root) {
try {
set_cs_info(open_file(path.data, true, false).get());
const auto hf = open_file(path.data, true, false);
if (get_win_build() <= 20206) {
set_cs_info(hf.get());
}
} catch (lro_error &e) {
if (e.msg_code == err_msg::err_set_cs) e.msg_args.push_back(path.data);
throw;
Expand Down

0 comments on commit fdab71a

Please sign in to comment.