Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,13 @@ error_code dir_itr_create(boost::intrusive_ptr< detail::dir_itr_imp >& imp, fs::
{
DWORD error = ::GetLastError();

if (error == ERROR_NOT_SUPPORTED || error == ERROR_INVALID_PARAMETER)
{
// Fall back to file_directory_information_format
filesystem::detail::atomic_store_relaxed(g_extra_data_format, file_directory_information_format);
return dir_itr_create(imp, dir, opts, params, first_filename, sf, symlink_sf);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempt to goto into last branch as fallback failed, most probably extra_data / dir_itr_extra_size already has some incorrect data here, have not looked deep.

}

if (error == ERROR_NO_MORE_FILES || error == ERROR_FILE_NOT_FOUND)
goto done;

Expand Down