Module: wine Branch: stable Commit: 0520cbb48b09749123161021ce905c8a9ba85a2b URL: http://source.winehq.org/git/wine.git/?a=commit;h=0520cbb48b09749123161021ce...
Author: Hans Leidekker hans@it.vu.nl Date: Mon Jun 23 20:57:46 2008 +0200
wininet: Clear last error upon successful return from HttpSendRequest. (cherry picked from commit 3434935f44eadecae1e8aa11d08142a40b671978)
---
dlls/wininet/http.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index b973a79..7be8214 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3165,9 +3165,6 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
assert(lpwhr->hdr.htype == WH_HHTTPREQ);
- /* Clear any error information */ - INTERNET_SetLastError(0); - /* if the verb is NULL default to GET */ if (!lpwhr->lpszVerb) lpwhr->lpszVerb = WININET_strdupW(szGET); @@ -3409,6 +3406,7 @@ lend: sizeof(INTERNET_ASYNC_RESULT));
TRACE("<--\n"); + if (bSuccess) INTERNET_SetLastError(ERROR_SUCCESS); return bSuccess; }