diff options
author | midipix <writeonce@midipix.org> | 2016-05-14 07:21:38 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-14 07:21:38 -0400 |
commit | af4a59b88b4c26705fbf9f2ec85d9813787976fc (patch) | |
tree | 0497b7c74063d943d752650763d22be68ee4bb29 /src/socket | |
parent | dfc898424c46aa76a807151c5a89c7599ad39fbb (diff) | |
download | ntapi-af4a59b88b4c26705fbf9f2ec85d9813787976fc.tar.bz2 ntapi-af4a59b88b4c26705fbf9f2ec85d9813787976fc.tar.xz |
__ntapi_sc_wait(): fix return value assignment after a successful wait.
Diffstat (limited to 'src/socket')
-rw-r--r-- | src/socket/ntapi_sc_wait.c | 4 |
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: |