Module: wine Branch: master Commit: 8fee7e8b7c37eb1998a14439972c25c3417e08f7 URL: https://gitlab.winehq.org/wine/wine/-/commit/8fee7e8b7c37eb1998a14439972c25c...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Mon Jul 25 19:24:59 2022 -0500
ntdll: Do not queue an IOCP packet in complete_async() if an APC routine is specified.
---
dlls/ntdll/unix/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c index ea2f5d3a670..123e318058b 100644 --- a/dlls/ntdll/unix/socket.c +++ b/dlls/ntdll/unix/socket.c @@ -1434,7 +1434,7 @@ static void complete_async( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, vo io->Information = information; if (event) NtSetEvent( event, NULL ); if (apc) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc, (ULONG_PTR)apc_user, iosb_ptr, 0 ); - if (apc_user) add_completion( handle, (ULONG_PTR)apc_user, status, information, FALSE ); + else if (apc_user) add_completion( handle, (ULONG_PTR)apc_user, status, information, FALSE ); }