Commit 1b766caa authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Support abort in task_socket_close().

parent 55425e85
......@@ -4145,13 +4145,18 @@ static void task_socket_close( void *ctx, BOOL abort )
struct socket *socket = (struct socket *)s->task_hdr.obj;
DWORD ret;
if (abort) return;
if (abort)
{
socket_close_complete( socket, ERROR_WINHTTP_OPERATION_CANCELLED );
return;
}
TRACE("running %p\n", ctx);
ret = socket_close( socket );
receive_io_complete( socket );
socket_close_complete( socket, ret );
if (task_needs_completion( &s->task_hdr ))
socket_close_complete( socket, ret );
}
DWORD WINAPI WinHttpWebSocketClose( HINTERNET hsocket, USHORT status, void *reason, DWORD len )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment