mshtml: Update binding moniker in handle_redirect.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
14b2a6a190
commit
a6ef2386a7
|
@ -1423,11 +1423,18 @@ static HRESULT handle_redirect(nsChannelBSC *This, const WCHAR *new_url)
|
||||||
nsRedirectCallback *callback;
|
nsRedirectCallback *callback;
|
||||||
nsIChannelEventSink *sink;
|
nsIChannelEventSink *sink;
|
||||||
nsChannel *new_channel;
|
nsChannel *new_channel;
|
||||||
|
IMoniker *mon;
|
||||||
nsresult nsres;
|
nsresult nsres;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
TRACE("(%p)->(%s)\n", This, debugstr_w(new_url));
|
TRACE("(%p)->(%s)\n", This, debugstr_w(new_url));
|
||||||
|
|
||||||
|
hres = CreateURLMoniker(NULL, new_url, &mon);
|
||||||
|
if(FAILED(hres))
|
||||||
|
return hres;
|
||||||
|
IMoniker_Release(This->bsc.mon);
|
||||||
|
This->bsc.mon = mon;
|
||||||
|
|
||||||
if(!This->nschannel || !This->nschannel->notif_callback)
|
if(!This->nschannel || !This->nschannel->notif_callback)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue