From aad7c9151e63843366bb029bd6844a2694c34951 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 27 Sep 2017 17:05:34 +0200 Subject: [PATCH] afd: use RtlNtStatusToDosError to map NTSTATUS to error code --- src/afd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afd.c b/src/afd.c index a2f90ec..1587df2 100644 --- a/src/afd.c +++ b/src/afd.c @@ -84,7 +84,7 @@ int afd_poll(SOCKET driver_socket, else if (status == STATUS_PENDING) return_error(-1, ERROR_IO_PENDING); else - return_error(-1, we_map_ntstatus_to_win_error(status)); + return_error(-1, RtlNtStatusToDosError(status)); } static SOCKET _afd_get_base_socket(SOCKET socket) {