Module: wine Branch: refs/heads/master Commit: 2571fa004a334818c1d9c0a438c974a9ce28106f URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2571fa004a334818c1d9c0a4...
Author: Mike McCormack mike@codeweavers.com Date: Thu Mar 30 18:00:30 2006 +0900
wininet: Make sure to set LastError when returning FALSE in HttpQueryInfo.
---
dlls/wininet/http.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
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 @@ static BOOL WINAPI HTTP_HttpQueryInfoW( requested_index,request_only);
if (index < 0) - return bSuccess; - else - lphttpHdr = &lpwhr->pCustHeaders[index]; + break; + lphttpHdr = &lpwhr->pCustHeaders[index];
if (lpdwIndex) (*lpdwIndex)++;