urlmon: Fixed QueryInfo tests during BINDSTATUS_PROXYDETECTING notification.

This commit is contained in:
Jacek Caban 2013-02-12 17:17:47 +01:00 committed by Alexandre Julliard
parent c8a4ce89d0
commit 76997f1a38
1 changed files with 2 additions and 2 deletions

View File

@ -1463,8 +1463,8 @@ static void test_WinInetHttpInfo(IWinInetHttpInfo *http_info, DWORD progress)
size = sizeof(DWORD);
hres = IWinInetHttpInfo_QueryInfo(http_info, HTTP_QUERY_STATUS_CODE|HTTP_QUERY_FLAG_NUMBER,
&status, &size, NULL, NULL);
ok(hres == expect || (progress == BINDSTATUS_COOKIE_SENT && hres == S_FALSE),
"hres = %x, expected %x\n", hres, expect);
ok(hres == expect || ((progress == BINDSTATUS_COOKIE_SENT || progress == BINDSTATUS_PROXYDETECTING) && hres == S_FALSE),
"progress %u: hres = %x, expected %x\n", progress, hres, expect);
if(hres == S_OK) {
if(download_state==BEFORE_DOWNLOAD && progress!=BINDSTATUS_MIMETYPEAVAILABLE)
ok(status == 0, "status = %d\n", status);