diff --git a/src/socket/ntapi_sc_accept.c b/src/socket/ntapi_sc_accept.c index 3390616..bda6a83 100644 --- a/src/socket/ntapi_sc_accept.c +++ b/src/socket/ntapi_sc_accept.c @@ -14,6 +14,8 @@ typedef struct __addr_memcpy { uint64_t d0; uint64_t d1; + uint64_t d2; + uint32_t d3; } _addr_memcpy; @@ -72,6 +74,15 @@ int32_t __cdecl __ntapi_sc_accept( dst->d0 = src->d0; dst->d1 = src->d1; + + if ((size_t)iosb->info >= sizeof(accept_info.sequence) + + sizeof(nt_sockaddr_in6)) { + dst->d2 = src->d2; + dst->d3 = src->d3; + } else { + dst->d2 = 0; + dst->d3 = 0; + } } /* return address length information */