Jacek Caban (@jacek) commented about dlls/mshtml/htmlwindow.c:
+{
- URL_COMPONENTSW url = { sizeof(URL_COMPONENTSW) };
- HRESULT hres;
- DWORD port;
- IUri *uri;
- BSTR bstr;
- if(V_VT(target_origin) != VT_BSTR)
return E_INVALIDARG;
- if(!wcscmp(V_BSTR(target_origin), L"*"))
return S_OK;
- url.dwSchemeLength = 1;
- url.dwHostNameLength = 1;
- if(!InternetCrackUrlW(V_BSTR(target_origin), 0, 0, &url)) {
I think this should use IUri interface instead.