Skip to content

Commit 185654c

Browse files
Shrink DLL 2% by removing dead code for Windows XP (microsoft#1397)
1 parent 2380824 commit 185654c

4 files changed

Lines changed: 5 additions & 654 deletions

File tree

‎stl/src/filesystem.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ void __stdcall __std_fs_directory_iterator_close(_In_ const __std_fs_dir_handle
253253

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

0 commit comments

Comments
 (0)