mshtml: Update binding moniker in handle_redirect.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Jacek Caban 2016-10-07 16:04:49 +02:00 committed by Alexandre Julliard
parent 14b2a6a190
commit a6ef2386a7
1 changed files with 7 additions and 0 deletions

View File

@ -1423,11 +1423,18 @@ static HRESULT handle_redirect(nsChannelBSC *This, const WCHAR *new_url)
nsRedirectCallback *callback;
nsIChannelEventSink *sink;
nsChannel *new_channel;
IMoniker *mon;
nsresult nsres;
HRESULT hres;
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)
return S_OK;