Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions stl/src/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ void __stdcall __std_fs_directory_iterator_close(_In_ const __std_fs_dir_handle

if (_Code_page == __std_code_page{CP_UTF8} || _Code_page == __std_code_page{54936}) {
// For UTF-8 or GB18030, attempt to use WC_ERR_INVALID_CHARS. (These codepages can't use WC_NO_BEST_FIT_CHARS
// below, and other codepages can't use WC_ERR_INVALID_CHARS.) WC_ERR_INVALID_CHARS is Windows Vista+.
// Windows XP will activate the ERROR_INVALID_FLAGS fallback below.
// below, and other codepages can't use WC_ERR_INVALID_CHARS.)
_Result._Len = WideCharToMultiByte(static_cast<unsigned int>(_Code_page), WC_ERR_INVALID_CHARS, _Input_str,
_Input_len, _Output_str, _Output_len, nullptr, nullptr);
} else { // For other codepages, attempt to use WC_NO_BEST_FIT_CHARS.
Expand Down
Loading