[PATCH 1/2] winhttp: WinHttpWebSocketCompleteUpgrade use WINHTTP_CALLBACK_STATUS_HANDLE_CREATED callback

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Jun 21 03:48:17 CDT 2020


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/winhttp/request.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 0511dd44ee..b25ab9a45c 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -3113,7 +3113,11 @@ HINTERNET WINAPI WinHttpWebSocketCompleteUpgrade( HINTERNET hrequest, DWORD_PTR
     release_object( &socket->hdr );
     release_object( &request->hdr );
     TRACE("returning %p\n", hsocket);
-    if (hsocket) SetLastError( ERROR_SUCCESS );
+    if (hsocket)
+    {
+        send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED, hsocket, sizeof(hsocket) );
+        SetLastError( ERROR_SUCCESS );
+    }
     return hsocket;
 }
 
-- 
2.27.0




More information about the wine-devel mailing list