windows: return UV_EACCESS for invalid pipe name
This commit is contained in:
parent
7fbe0c3882
commit
186abb00bc
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user