winhttp: Send WINHTTP_CALLBACK_STATUS_HANDLE_CREATED notification in WinHttpWebSocketCompleteUpgrade.

Based on a patch by Alistair Leslie-Hughes.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2020-06-22 21:39:25 +02:00 committed by Alexandre Julliard
parent c8c0bc6d2e
commit cc1c4759ba
1 changed files with 4 additions and 1 deletions

View File

@ -3113,7 +3113,10 @@ HINTERNET WINAPI WinHttpWebSocketCompleteUpgrade( HINTERNET hrequest, DWORD_PTR
addref_object( &request->hdr );
socket->request = request;
hsocket = alloc_handle( &socket->hdr );
if ((hsocket = alloc_handle( &socket->hdr )))
{
send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED, &hsocket, sizeof(hsocket) );
}
release_object( &socket->hdr );
release_object( &request->hdr );