urlmon: Fixed test on IE7.

This commit is contained in:
Jacek Caban 2007-10-07 17:50:02 +02:00 committed by Alexandre Julliard
parent d8ba5bf20b
commit 5c57c838b2
2 changed files with 4 additions and 2 deletions

View File

@ -251,8 +251,10 @@ static HRESULT WINAPI SecManagerImpl_MapUrlToZone(IInternetSecurityManager *ifac
return hres;
}
if(!pwszUrl)
if(!pwszUrl) {
*pdwZone = -1;
return E_INVALIDARG;
}
if(dwFlags)
FIXME("not supported flags: %08x\n", dwFlags);

View File

@ -691,7 +691,7 @@ static void test_SecurityManager(void)
zone = 100;
hres = IInternetSecurityManager_MapUrlToZone(secmgr, NULL, &zone, 0);
ok(hres == E_INVALIDARG, "MapUrlToZone failed: %08x, expected E_INVALIDARG\n", hres);
ok(zone == 100, "zone=%d\n", zone);
ok(zone == 100 || zone == -1, "zone=%d\n", zone);
size = sizeof(buf);
hres = IInternetSecurityManager_GetSecurityId(secmgr, NULL, buf, &size, 0);