commit | 2571fa004a334818c1d9c0a438c974a9ce28106f | [log] [tgz] |
---|---|---|
author | Mike McCormack <mike@codeweavers.com> | Thu Mar 30 18:00:30 2006 +0900 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Mar 30 12:38:14 2006 +0200 |
tree | 158735ffed10d05019cbebc1247063243f18fea3 | |
parent | 50436da519531d3a6981ec22c22958a1f21fc1b7 [diff] |
wininet: Make sure to set LastError when returning FALSE in HttpQueryInfo.
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 76f7b7e..48026a0 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c
@@ -1406,9 +1406,8 @@ requested_index,request_only); if (index < 0) - return bSuccess; - else - lphttpHdr = &lpwhr->pCustHeaders[index]; + break; + lphttpHdr = &lpwhr->pCustHeaders[index]; if (lpdwIndex) (*lpdwIndex)++;