summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/socket/ntapi_sc_wait.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/socket/ntapi_sc_wait.c b/src/socket/ntapi_sc_wait.c
index 64d74cb..7d8410a 100644
--- a/src/socket/ntapi_sc_wait.c
+++ b/src/socket/ntapi_sc_wait.c
@@ -14,8 +14,6 @@ int32_t __cdecl __ntapi_sc_wait(nt_socket * hssocket, nt_iosb * iosb, nt_timeout
{
nt_iosb cancel;
- (void)iosb;
-
timeout = (timeout && timeout->quad)
? timeout
: 0;
@@ -28,7 +26,7 @@ int32_t __cdecl __ntapi_sc_wait(nt_socket * hssocket, nt_iosb * iosb, nt_timeout
switch (hssocket->waitstatus) {
case NT_STATUS_SUCCESS:
- hssocket->iostatus = NT_STATUS_SUCCESS;
+ hssocket->iostatus = iosb->status;
break;
case NT_STATUS_ALERTED: