Commit 2571fa00 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 50436da5
......@@ -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)++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment