wininet: Make sure to set LastError when returning FALSE in HttpQueryInfo.

This commit is contained in:
Mike McCormack 2006-03-30 18:00:30 +09:00 committed by Alexandre Julliard
parent 50436da519
commit 2571fa004a
1 changed files with 2 additions and 3 deletions

View File

@ -1406,9 +1406,8 @@ static BOOL WINAPI HTTP_HttpQueryInfoW( LPWININETHTTPREQW lpwhr, DWORD dwInfoLev
requested_index,request_only);
if (index < 0)
return bSuccess;
else
lphttpHdr = &lpwhr->pCustHeaders[index];
break;
lphttpHdr = &lpwhr->pCustHeaders[index];
if (lpdwIndex)
(*lpdwIndex)++;