urlmon/tests: Always clear expect_* variables.

This commit is contained in:
Jacek Caban 2008-06-06 20:28:25 +02:00 committed by Alexandre Julliard
parent f6a3234bf3
commit 5fb656f958

View file

@ -1725,13 +1725,18 @@ static void test_mk_protocol(void)
hres == INET_E_INVALID_URL, /* win2k3 */
"Start failed: %08x, expected INET_E_RESOURCE_NOT_FOUND or INET_E_INVALID_URL\n", hres);
if (hres == INET_E_RESOURCE_NOT_FOUND)
{
if (hres == INET_E_RESOURCE_NOT_FOUND) {
CHECK_CALLED(GetBindInfo);
CLEAR_CALLED(ReportProgress_DIRECTBIND);
CHECK_CALLED(ReportProgress_SENDINGREQUEST);
CHECK_CALLED(ReportProgress_MIMETYPEAVAILABLE);
CHECK_CALLED(ReportResult);
}else {
CLEAR_CALLED(GetBindInfo);
CLEAR_CALLED(ReportProgress_DIRECTBIND);
CLEAR_CALLED(ReportProgress_SENDINGREQUEST);
CLEAR_CALLED(ReportProgress_MIMETYPEAVAILABLE);
CLEAR_CALLED(ReportResult);
}
IInternetProtocol_Release(protocol);