wininet: Remove some dead code (Coverity).

This commit is contained in:
Nikolay Sivov 2014-04-15 09:07:40 +04:00 committed by Alexandre Julliard
parent 601738dfb5
commit d87724e626
1 changed files with 2 additions and 8 deletions

View File

@ -3289,7 +3289,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
{ {
appinfo_t *hIC = session->appInfo; appinfo_t *hIC = session->appInfo;
http_request_t *request; http_request_t *request;
DWORD len, res = ERROR_SUCCESS; DWORD len;
TRACE("-->\n"); TRACE("-->\n");
@ -3378,13 +3378,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
INTERNET_STATUS_HANDLE_CREATED, &request->hdr.hInternet, INTERNET_STATUS_HANDLE_CREATED, &request->hdr.hInternet,
sizeof(HINTERNET)); sizeof(HINTERNET));
TRACE("<-- %u (%p)\n", res, request); TRACE("<-- (%p)\n", request);
if(res != ERROR_SUCCESS) {
WININET_Release( &request->hdr );
*ret = NULL;
return res;
}
*ret = request->hdr.hInternet; *ret = request->hdr.hInternet;
return ERROR_SUCCESS; return ERROR_SUCCESS;