diff --git a/src/win/pipe.c b/src/win/pipe.c index 04818308..74c62687 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -152,7 +152,7 @@ int uv_pipe_bind(uv_pipe_t* handle, const char* name) { handle->error = LOOP->last_error; handle->flags |= UV_HANDLE_BIND_ERROR; } else if (errno == ERROR_PATH_NOT_FOUND || errno == ERROR_INVALID_NAME) { - uv_set_error(UV_EADDRNOTAVAIL, errno); + uv_set_error(UV_EACCESS, errno); } else { uv_set_sys_error(errno); }