Chromium Code Reviews| Index: base/files/file_enumerator_win.cc |
| diff --git a/base/files/file_enumerator_win.cc b/base/files/file_enumerator_win.cc |
| index 6da1667ed99cc27f6da735965da13936ac1ef94b..931d15498164267f0f6e68913ae88a5ad1e5f1c3 100644 |
| --- a/base/files/file_enumerator_win.cc |
| +++ b/base/files/file_enumerator_win.cc |
| @@ -147,7 +147,8 @@ FilePath FileEnumerator::Next() { |
| // add it to pending_paths_ so we scan it after we finish scanning this |
| // directory. However, don't do recursion through reparse points or we |
| // may end up with an infinite cycle. |
| - if (!(find_data_.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) |
| + DWORD attributes = GetFileAttributes(cur_file.value().c_str()); |
|
rvargas (doing something else)
2015/02/24 01:52:20
I hate ms...
Will Harris
2015/02/24 19:00:28
Acknowledged. :)
|
| + if (!(attributes & FILE_ATTRIBUTE_REPARSE_POINT)) |
| pending_paths_.push(cur_file); |
| } |
| if (file_type_ & FileEnumerator::DIRECTORIES) |