Skip to content
Snippets Groups Projects
Commit eee39b12 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard
Browse files

cryptnet: Don't call HttpEndRequest on a request that was never sent.

parent 20093556
No related branches found
No related tags found
No related merge requests found
......@@ -967,7 +967,8 @@ static BOOL WINAPI HTTP_RetrieveEncodedObjectW(LPCWSTR pszURL,
/* We don't set ret to TRUE in this block to avoid masking
* an error from HttpSendRequestExW.
*/
if (!HttpEndRequestW(hHttp, NULL, 0, (DWORD_PTR)context) &&
if (ret &&
!HttpEndRequestW(hHttp, NULL, 0, (DWORD_PTR)context) &&
GetLastError() == ERROR_IO_PENDING)
{
if (WaitForSingleObject(context->event,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment