shdocvw: Make sure BSTR is allocated before calling sink.
This commit is contained in:
parent
11894cc77e
commit
545b13a733
|
@ -49,11 +49,12 @@ static void navigate_complete(DocHost *This)
|
|||
V_DISPATCH(params+1) = disp;
|
||||
|
||||
V_VT(&url) = VT_BSTR;
|
||||
V_BSTR(&url) = This->url;
|
||||
V_BSTR(&url) = SysAllocString(This->url);
|
||||
|
||||
call_sink(This->cps.wbe2, DISPID_NAVIGATECOMPLETE2, &dispparams);
|
||||
call_sink(This->cps.wbe2, DISPID_DOCUMENTCOMPLETE, &dispparams);
|
||||
|
||||
SysFreeString(V_BSTR(&url));
|
||||
if(disp)
|
||||
IDispatch_Release(disp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue