Hans Leidekker : wininet: Clear last error upon successful return from HttpSendRequest.
Module: wine Branch: master Commit: 3434935f44eadecae1e8aa11d08142a40b671978 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3434935f44eadecae1e8aa11d0... Author: Hans Leidekker <hans(a)it.vu.nl> Date: Mon Jun 23 20:57:46 2008 +0200 wininet: Clear last error upon successful return from HttpSendRequest. --- 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 10fa8a5..c8a9608 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3168,9 +3168,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); @@ -3412,6 +3409,7 @@ lend: sizeof(INTERNET_ASYNC_RESULT)); TRACE("<--\n"); + if (bSuccess) INTERNET_SetLastError(ERROR_SUCCESS); return bSuccess; }
participants (1)
-
Alexandre Julliard