Commit bbfae3de authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

urlmon: Fixed MapUrlToZone test on IE7.

parent 75fe97dc
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment