urlmon: Fixed MapUrlToZone test on IE7.
This commit is contained in:
parent
75fe97dc0b
commit
bbfae3deff
|
@ -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)) {
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue