From 0dbb409e399efe3ff884344365c2c6b7ff2f5b6a Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 16 Jun 2016 13:16:44 -0400 Subject: nt_socket.h: struct _nt_afd_listen_info: fix definition. --- include/ntapi/nt_socket.h | 4 ++-- src/socket/ntapi_sc_listen.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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, -- cgit v1.2.3