diff options
Diffstat (limited to 'src/database/file_gatherer.cpp')
| -rw-r--r-- | src/database/file_gatherer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/file_gatherer.cpp b/src/database/file_gatherer.cpp index f07a1b4d..dde363bd 100644 --- a/src/database/file_gatherer.cpp +++ b/src/database/file_gatherer.cpp @@ -28,6 +28,8 @@ auto FileGathererImpl::FindFiles( while (!to_explore.empty()) { std::string next_path_str = to_explore.front(); + to_explore.pop_front(); + const TCHAR* next_path = static_cast<const TCHAR*>(next_path_str.c_str()); FF_DIR dir; @@ -72,7 +74,6 @@ auto FileGathererImpl::FindFiles( auto lock = drivers::acquire_spi(); f_closedir(&dir); - to_explore.pop_front(); } } |
