8 Aug
2022
8 Aug
'22
4:19 p.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/580#note_5827