Commit 14a7759c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

Fix protocol test on 9x.

parent 9f3af964
...@@ -95,8 +95,8 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR ...@@ -95,8 +95,8 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR
{ {
ok(expect_ReportResult, "unexpected call\n"); ok(expect_ReportResult, "unexpected call\n");
if(expect_hr_win32err) if(expect_hr_win32err)
ok((hrResult&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000), ok((hrResult&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || expect_hrResult,
"expected win32 err got: %08lx\n", hrResult); "expected win32 err or %08lx got: %08lx\n", expect_hrResult, hrResult);
else else
ok(hrResult == expect_hrResult, "expected: %08lx got: %08lx\n", expect_hrResult, hrResult); ok(hrResult == expect_hrResult, "expected: %08lx got: %08lx\n", expect_hrResult, hrResult);
ok(dwError == 0, "dwError = %ld\n", dwError); ok(dwError == 0, "dwError = %ld\n", dwError);
...@@ -182,7 +182,8 @@ static void test_protocol_fail(IInternetProtocol *protocol, LPCWSTR url, HRESULT ...@@ -182,7 +182,8 @@ static void test_protocol_fail(IInternetProtocol *protocol, LPCWSTR url, HRESULT
expect_hr_win32err = expect_win32err; expect_hr_win32err = expect_win32err;
hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0); hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0);
if(expect_win32err) if(expect_win32err)
ok((hres&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000), "expected win32 err got: %08lx\n", hres); ok((hres&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || hres == expect_hrResult,
"expected win32 err or %08lx got: %08lx\n", expected_hres, hres);
else else
ok(hres == expected_hres, "expected: %08lx got: %08lx\n", expected_hres, hres); ok(hres == expected_hres, "expected: %08lx got: %08lx\n", expected_hres, hres);
ok(called_ReportResult, "expected ReportResult\n"); ok(called_ReportResult, "expected ReportResult\n");
......
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