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

mshtml: Use CreateURLMonikerEx2 in SuperNavigate.

parent 1e60c2f3
......@@ -1676,6 +1676,7 @@ static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate(IHTMLPrivateWindow *iface,
nsChannelBSC *bsc;
IMoniker *mon;
BSTR new_url;
IUri *uri;
HRESULT hres;
TRACE("(%p)->(%s %s %s %s %s %s %x)\n", This, debugstr_w(url), debugstr_w(arg2), debugstr_w(arg3), debugstr_w(arg4),
......@@ -1710,15 +1711,20 @@ static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate(IHTMLPrivateWindow *iface,
}
}
/* FIXME: Why not set_ready_state? */
This->readystate = READYSTATE_UNINITIALIZED;
hres = CreateURLMoniker(NULL, new_url, &mon);
hres = CreateUri(new_url, 0, 0, &uri);
if(new_url != url)
SysFreeString(new_url);
if(FAILED(hres))
return hres;
hres = CreateURLMonikerEx2(NULL, uri, &mon, URL_MK_UNIFORM);
IUri_Release(uri);
if(FAILED(hres))
return hres;
/* FIXME: Why not set_ready_state? */
This->readystate = READYSTATE_UNINITIALIZED;
if(post_data_var) {
if(V_VT(post_data_var) == (VT_ARRAY|VT_UI1)) {
SafeArrayAccessData(V_ARRAY(post_data_var), (void**)&post_data);
......
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