shdocvw: Make sure BSTR is allocated before calling sink.

This commit is contained in:
Cihan Altinay 2006-10-17 16:56:21 +02:00 committed by Alexandre Julliard
parent 11894cc77e
commit 545b13a733
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}