Skip to content

Commit cdf1488

Browse files
authored
Added a missing case for __std_is_file_not_found(). (#5381)
1 parent 0cc1eb9 commit cdf1488

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/xfilesystem_abi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ enum class __std_win_error : unsigned long {
3939
_Insufficient_buffer = 122, // #define ERROR_INSUFFICIENT_BUFFER 122L
4040
_Invalid_name = 123, // #define ERROR_INVALID_NAME 123L
4141
_Directory_not_empty = 145, // #define ERROR_DIR_NOT_EMPTY 145L
42+
_Bad_pathname = 161, // #define ERROR_BAD_PATHNAME 161L
4243
_Already_exists = 183, // #define ERROR_ALREADY_EXISTS 183L
4344
_Filename_exceeds_range = 206, // #define ERROR_FILENAME_EXCED_RANGE 206L
4445
_Directory_name_is_invalid = 267, // #define ERROR_DIRECTORY 267L
@@ -54,6 +55,7 @@ _NODISCARD inline bool __std_is_file_not_found(const __std_win_error _Error) noe
5455
case __std_win_error::_Path_not_found:
5556
case __std_win_error::_Error_bad_netpath:
5657
case __std_win_error::_Invalid_name:
58+
case __std_win_error::_Bad_pathname:
5759
case __std_win_error::_Directory_name_is_invalid: // Windows 11 24H2
5860
case __std_win_error::_Error_netname_deleted: // Windows 11 24H2
5961
return true;

0 commit comments

Comments
 (0)