From 87511ee62527a04f87029f48a8365e3c2e10df42 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 16 Jun 2016 15:30:54 -0400 Subject: ntapi_sc_listen(): properly support backlog and afd flags. --- src/socket/ntapi_sc_listen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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, -- cgit v1.2.3