shdocvw: Move create_doc_view_hwnd call to navigate_url.

This commit is contained in:
Jacek Caban 2006-04-19 20:39:39 +02:00 committed by Alexandre Julliard
parent 4a8397a593
commit 7b09cca963
2 changed files with 3 additions and 3 deletions

View File

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

View File

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