Jan-Peter Nilsson : winhttp: Set the context on the request handle earlier.
Alexandre Julliard
julliard at winehq.org
Mon Feb 20 11:17:33 CST 2012
Module: wine
Branch: master
Commit: 3de7348f72e28b2744032b6eb83795163ee386ed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3de7348f72e28b2744032b6eb83795163ee386ed
Author: Jan-Peter Nilsson <peppe at bsnet.se>
Date: Sat Feb 18 10:23:47 2012 +0100
winhttp: Set the context on the request handle earlier.
---
dlls/winhttp/request.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index a3a92ab..040f79b 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1085,6 +1085,8 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
return FALSE;
}
+ if (context) request->hdr.context = context;
+
if (!(ret = open_connection( request ))) goto end;
if (!(req = build_request_string( request ))) goto end;
@@ -1092,7 +1094,6 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
TRACE("full request: %s\n", debugstr_a(req_ascii));
len = strlen(req_ascii);
- if (context) request->hdr.context = context;
send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_SENDING_REQUEST, NULL, 0 );
ret = netconn_send( &request->netconn, req_ascii, len, 0, &bytes_sent );
More information about the wine-cvs
mailing list