Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
win: add ERROR_FILENAME_EXCED_RANGE mapping, fix fs_file_nametoolong …
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
piscisaureus committed Feb 13, 2012
1 parent 6c80bf3 commit bc8b990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/win/error.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/test-fs.c
Expand Up @@ -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;
Expand Down

0 comments on commit bc8b990

Please sign in to comment.