Nikolay Sivov : wininet: Remove some dead code (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Apr 15 14:50:33 CDT 2014
Module: wine
Branch: master
Commit: d87724e626e48ff2b380d270325cd9e3e3e01321
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d87724e626e48ff2b380d270325cd9e3e3e01321
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Apr 15 09:07:40 2014 +0400
wininet: Remove some dead code (Coverity).
---
dlls/wininet/http.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 934af3a..07b4787 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3289,7 +3289,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
{
appinfo_t *hIC = session->appInfo;
http_request_t *request;
- DWORD len, res = ERROR_SUCCESS;
+ DWORD len;
TRACE("-->\n");
@@ -3378,13 +3378,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
INTERNET_STATUS_HANDLE_CREATED, &request->hdr.hInternet,
sizeof(HINTERNET));
- TRACE("<-- %u (%p)\n", res, request);
-
- if(res != ERROR_SUCCESS) {
- WININET_Release( &request->hdr );
- *ret = NULL;
- return res;
- }
+ TRACE("<-- (%p)\n", request);
*ret = request->hdr.hInternet;
return ERROR_SUCCESS;
More information about the wine-cvs
mailing list