Hans Leidekker : wininet: Clear last error upon successful return from HttpSendRequest.
Alexandre Julliard
julliard at winehq.org
Tue Jun 24 06:43:49 CDT 2008
Module: wine
Branch: master
Commit: 3434935f44eadecae1e8aa11d08142a40b671978
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3434935f44eadecae1e8aa11d08142a40b671978
Author: Hans Leidekker <hans at 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;
}
More information about the wine-cvs
mailing list