win: add ERROR_FILENAME_EXCED_RANGE mapping, fix fs_file_nametoolong test
This commit is contained in:
parent
6c80bf34d3
commit
bc8b99097a
@ -95,6 +95,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
|
||||
case ERROR_TOO_MANY_OPEN_FILES: return UV_EMFILE;
|
||||
case WSAEMFILE: return UV_EMFILE;
|
||||
case WSAEMSGSIZE: return UV_EMSGSIZE;
|
||||
case ERROR_FILENAME_EXCED_RANGE: return UV_ENAMETOOLONG;
|
||||
case ERROR_NETWORK_UNREACHABLE: return UV_ENETUNREACH;
|
||||
case WSAENETUNREACH: return UV_ENETUNREACH;
|
||||
case WSAENOBUFS: return UV_ENOBUFS;
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
# define close _close
|
||||
#endif
|
||||
|
||||
#define TOO_LONG_NAME_LENGTH 8192
|
||||
#define TOO_LONG_NAME_LENGTH 65536
|
||||
|
||||
typedef struct {
|
||||
const char* path;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user