ieframe: Pass BSTR to handle_navigation_error.

This commit is contained in:
Piotr Caban 2013-03-05 16:17:57 +01:00 committed by Alexandre Julliard
parent d5a4621bd6
commit 402b10013f

View file

@ -45,7 +45,7 @@ typedef struct {
DocHost *doc_host; DocHost *doc_host;
IBinding *binding; IBinding *binding;
LPWSTR url; BSTR url;
HGLOBAL post_data; HGLOBAL post_data;
BSTR headers; BSTR headers;
ULONG post_data_len; ULONG post_data_len;
@ -206,7 +206,7 @@ static ULONG WINAPI BindStatusCallback_Release(IBindStatusCallback *iface)
if(This->post_data) if(This->post_data)
GlobalFree(This->post_data); GlobalFree(This->post_data);
SysFreeString(This->headers); SysFreeString(This->headers);
heap_free(This->url); SysFreeString(This->url);
heap_free(This); heap_free(This);
} }
@ -543,7 +543,7 @@ static BindStatusCallback *create_callback(DocHost *doc_host, LPCWSTR url, PBYTE
ret->IHttpSecurity_iface.lpVtbl = &HttpSecurityVtbl; ret->IHttpSecurity_iface.lpVtbl = &HttpSecurityVtbl;
ret->ref = 1; ret->ref = 1;
ret->url = heap_strdupW(url); ret->url = SysAllocString(url);
ret->post_data = NULL; ret->post_data = NULL;
ret->post_data_len = post_data_len; ret->post_data_len = post_data_len;
ret->headers = headers ? SysAllocString(headers) : NULL; ret->headers = headers ? SysAllocString(headers) : NULL;