wininet: Clear last error upon successful return from HttpSendRequest.

This commit is contained in:
Hans Leidekker 2008-06-23 20:57:46 +02:00 committed by Alexandre Julliard
parent acec891ac2
commit 3434935f44
1 changed files with 1 additions and 3 deletions

View File

@ -3168,9 +3168,6 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
assert(lpwhr->hdr.htype == WH_HHTTPREQ); assert(lpwhr->hdr.htype == WH_HHTTPREQ);
/* Clear any error information */
INTERNET_SetLastError(0);
/* if the verb is NULL default to GET */ /* if the verb is NULL default to GET */
if (!lpwhr->lpszVerb) if (!lpwhr->lpszVerb)
lpwhr->lpszVerb = WININET_strdupW(szGET); lpwhr->lpszVerb = WININET_strdupW(szGET);
@ -3412,6 +3409,7 @@ lend:
sizeof(INTERNET_ASYNC_RESULT)); sizeof(INTERNET_ASYNC_RESULT));
TRACE("<--\n"); TRACE("<--\n");
if (bSuccess) INTERNET_SetLastError(ERROR_SUCCESS);
return bSuccess; return bSuccess;
} }