urlmon: Fixed MapUrlToZone test on IE7.

This commit is contained in:
Jacek Caban 2008-03-08 20:15:45 +01:00 committed by Alexandre Julliard
parent 75fe97dc0b
commit bbfae3deff
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone)
if(FAILED(hres))
return hres;
if(!*schema)
return 0x80041001;
return E_INVALIDARG;
/* file protocol is a special case */
if(!strcmpW(schema, wszFile)) {

View File

@ -754,7 +754,8 @@ static void test_SecurityManager(void)
zone = 100;
hres = IInternetSecurityManager_MapUrlToZone(secmgr, secmgr_tests[i].url,
&zone, 0);
ok(hres == secmgr_tests[i].zone_hres,
ok(hres == secmgr_tests[i].zone_hres /* IE <=6 */
|| (FAILED(secmgr_tests[i].zone_hres) && hres == E_INVALIDARG), /* IE7 */
"[%d] MapUrlToZone failed: %08x, expected %08x\n",
i, hres, secmgr_tests[i].zone_hres);
if(SUCCEEDED(hres))