shdocvw: Move create_doc_view_hwnd call to navigate_url.
This commit is contained in:
parent
4a8397a593
commit
7b09cca963
|
@ -450,6 +450,9 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, PBYTE post_data, ULONG post_dat
|
|||
VARIANT_BOOL cancel = VARIANT_FALSE;
|
||||
HRESULT hres;
|
||||
|
||||
if(!This->hwnd)
|
||||
create_doc_view_hwnd(This);
|
||||
|
||||
hres = CreateURLMoniker(NULL, url, &mon);
|
||||
if(FAILED(hres)) {
|
||||
WARN("CreateURLMoniker failed: %08lx\n", hres);
|
||||
|
|
|
@ -611,9 +611,6 @@ static HRESULT WINAPI WebBrowser_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VA
|
|||
TRACE("Headers: %s\n", debugstr_w(headers));
|
||||
}
|
||||
|
||||
if(!This->doc_host.hwnd)
|
||||
create_doc_view_hwnd(&This->doc_host);
|
||||
|
||||
hres = navigate_url(&This->doc_host, V_BSTR(URL), post_data, post_data_len, headers);
|
||||
|
||||
if(post_data)
|
||||
|
|
Loading…
Reference in New Issue