Skip to content

Commit 80ada9f

Browse files
committed
windows: always use FindFirstFileEx
1 parent f63b5a6 commit 80ada9f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/fileiter.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <climits>
2424
#include <stdexcept>
2525
#include <string>
26+
#include <boost/predef.h>
2627
#include <boost/throw_exception.hpp>
2728
#include <boost/regex/v4/fileiter.hpp>
2829
#include <boost/regex/v4/regex_workaround.hpp>
@@ -396,13 +397,9 @@ inline _fi_find_handle find_first_file(const char* wild, _fi_find_data& data)
396397
if (::MultiByteToWideChar(CP_ACP, 0, wild, wild_size, wide_wild, wild_size + 1) == 0)
397398
return _fi_invalid_handle;
398399

399-
# if BOOST_PLAT_WINDOWS_RUNTIME
400400
return FindFirstFileExW(wide_wild, FindExInfoStandard, &data, FindExSearchNameMatch, NULL, 0);
401-
# else
402-
return FindFirstFileW(wide_wild, &data);
403-
# endif
404401
#else
405-
return FindFirstFileA(wild, &data);
402+
return FindFirstFileExA(wild, FindExInfoStandard, &data, FindExSearchNameMatch, NULL, 0);
406403
#endif
407404
}
408405

0 commit comments

Comments
 (0)