Module: wine Branch: master Commit: eee39b12abc92cffdfbc6923a01cb174b4631b60 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eee39b12abc92cffdfbc6923a0... Author: Juan Lang <juan.lang(a)gmail.com> Date: Sat Feb 18 19:08:45 2012 -0800 cryptnet: Don't call HttpEndRequest on a request that was never sent. --- dlls/cryptnet/cryptnet_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c index 5d06396..3143604 100644 --- a/dlls/cryptnet/cryptnet_main.c +++ b/dlls/cryptnet/cryptnet_main.c @@ -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,