mshtml/tests: Fix a HRESULT comparison in ProtocolSink_ReportResult().

ProtocolSink_ReportResult() only checks expect_hrResult is non-zero,
instead of comparing it against hres
like the same code snippet in test_protocol_fail().

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2020-04-10 13:30:22 +02:00 committed by Alexandre Julliard
parent 8262ea2909
commit 5e75310837
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR
CHECK_EXPECT(ReportResult);
if(expect_hr_win32err) {
ok((hrResult&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || expect_hrResult,
ok((hrResult&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || hrResult == expect_hrResult,
"expected win32 err or %08x got: %08x\n", expect_hrResult, hrResult);
}else {
ok(hrResult == expect_hrResult || (expect_hrResult == E_INVALIDARG && hrResult == MK_E_SYNTAX)