Skip to content

Commit 3f7038d

Browse files
committed
Revert "Revert "win,errors: remap ERROR_ACCESS_DENIED to UV_EACCES (libuv#3193)" (libuv#3565)"
This reverts commit a6ba1d7. This revert was supposed to happen only on libuv v1.x, not libuv master.
1 parent 2df54fc commit 3f7038d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ int uv_translate_sys_error(int sys_errno) {
7171
case WSAEACCES: return UV_EACCES;
7272
case ERROR_ELEVATION_REQUIRED: return UV_EACCES;
7373
case ERROR_CANT_ACCESS_FILE: return UV_EACCES;
74+
case ERROR_ACCESS_DENIED: return UV_EACCES;
7475
case ERROR_ADDRESS_ALREADY_ASSOCIATED: return UV_EADDRINUSE;
7576
case WSAEADDRINUSE: return UV_EADDRINUSE;
7677
case WSAEADDRNOTAVAIL: return UV_EADDRNOTAVAIL;
@@ -152,7 +153,6 @@ int uv_translate_sys_error(int sys_errno) {
152153
case WSAENOTSOCK: return UV_ENOTSOCK;
153154
case ERROR_NOT_SUPPORTED: return UV_ENOTSUP;
154155
case ERROR_BROKEN_PIPE: return UV_EOF;
155-
case ERROR_ACCESS_DENIED: return UV_EPERM;
156156
case ERROR_PRIVILEGE_NOT_HELD: return UV_EPERM;
157157
case ERROR_BAD_PIPE: return UV_EPIPE;
158158
case ERROR_NO_DATA: return UV_EPIPE;

0 commit comments

Comments
 (0)