diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index 68dce1a..9479aa4 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -308,9 +308,9 @@ typedef struct _nt_afd_buffer { typedef struct _nt_afd_listen_info { - void * unknown_1st; + uint32_t unknown; uint32_t backlog; - void * unknown_2nd; + uint32_t flags; } nt_afd_listen_info; diff --git a/src/socket/ntapi_sc_listen.c b/src/socket/ntapi_sc_listen.c index 8f7fb0d..0fc0d87 100644 --- a/src/socket/ntapi_sc_listen.c +++ b/src/socket/ntapi_sc_listen.c @@ -22,9 +22,9 @@ int32_t __cdecl __ntapi_sc_listen( iosb = iosb ? iosb : &siosb; /* afd_listen */ - afd_listen.unknown_1st = 0; - afd_listen.unknown_2nd = 0; - afd_listen.backlog = (uint32_t)backlog; + afd_listen.unknown = 0; + afd_listen.flags = 0; + afd_listen.backlog = (uint32_t)backlog; hssocket->iostatus = __ntapi->zw_device_io_control_file( hssocket->hsocket,