Hans Leidekker : winhttp: Send WINHTTP_CALLBACK_STATUS_HANDLE_CREATED notification in WinHttpWebSocketCompleteUpgrade.

Alexandre Julliard julliard at winehq.org
Tue Jun 23 15:52:51 CDT 2020


Module: wine
Branch: master
Commit: cc1c4759bacace8a8d1060e8b0e20dce592accd3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cc1c4759bacace8a8d1060e8b0e20dce592accd3

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Jun 22 21:39:25 2020 +0200

winhttp: Send WINHTTP_CALLBACK_STATUS_HANDLE_CREATED notification in WinHttpWebSocketCompleteUpgrade.

Based on a patch by Alistair Leslie-Hughes.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/request.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index d44baa26c2..0c038289f8 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -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 );




More information about the wine-cvs mailing list