server: Map EFAULT to STATUS_ACCESS_VIOLATION.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-05-05 21:41:47 -05:00 committed by Alexandre Julliard
parent 44c395d616
commit 523032e6f1
1 changed files with 1 additions and 1 deletions

View File

@ -1286,7 +1286,7 @@ static int sock_get_ntstatus( int err )
case EBUSY: return STATUS_DEVICE_BUSY; case EBUSY: return STATUS_DEVICE_BUSY;
case EPERM: case EPERM:
case EACCES: return STATUS_ACCESS_DENIED; case EACCES: return STATUS_ACCESS_DENIED;
case EFAULT: return STATUS_NO_MEMORY; case EFAULT: return STATUS_ACCESS_VIOLATION;
case EINVAL: return STATUS_INVALID_PARAMETER; case EINVAL: return STATUS_INVALID_PARAMETER;
case ENFILE: case ENFILE:
case EMFILE: return STATUS_TOO_MANY_OPENED_FILES; case EMFILE: return STATUS_TOO_MANY_OPENED_FILES;