diff options
author | midipix <writeonce@midipix.org> | 2016-06-16 15:30:54 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-06-16 15:30:54 -0400 |
commit | 87511ee62527a04f87029f48a8365e3c2e10df42 (patch) | |
tree | d9afcf0936fb532f8128de4f0440a3071312a66a /src | |
parent | 3c4d6f7d2b142f136ff841fda54c4baaf690f9c5 (diff) | |
download | ntapi-87511ee62527a04f87029f48a8365e3c2e10df42.tar.bz2 ntapi-87511ee62527a04f87029f48a8365e3c2e10df42.tar.xz |
ntapi_sc_listen(): properly support backlog and afd flags.
Diffstat (limited to 'src')
-rw-r--r-- | src/socket/ntapi_sc_listen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/socket/ntapi_sc_listen.c b/src/socket/ntapi_sc_listen.c index 0fc0d87..efc9608 100644 --- a/src/socket/ntapi_sc_listen.c +++ b/src/socket/ntapi_sc_listen.c @@ -13,7 +13,8 @@ int32_t __cdecl __ntapi_sc_listen( __in nt_socket * hssocket, - __in uintptr_t backlog, + __in uint32_t backlog, + __in uint32_t afdflags __optional, __out nt_io_status_block * iosb __optional) { nt_afd_listen_info afd_listen; @@ -23,8 +24,8 @@ int32_t __cdecl __ntapi_sc_listen( /* afd_listen */ afd_listen.unknown = 0; - afd_listen.flags = 0; - afd_listen.backlog = (uint32_t)backlog; + afd_listen.flags = afdflags; + afd_listen.backlog = backlog; hssocket->iostatus = __ntapi->zw_device_io_control_file( hssocket->hsocket, |