From 7b09cca96361b169213bc746656b2eb1ff93eff1 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 19 Apr 2006 20:39:39 +0200 Subject: [PATCH] shdocvw: Move create_doc_view_hwnd call to navigate_url. --- dlls/shdocvw/navigate.c | 3 +++ dlls/shdocvw/webbrowser.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c index 1b6ba873012..865195f9131 100644 --- a/dlls/shdocvw/navigate.c +++ b/dlls/shdocvw/navigate.c @@ -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); diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c index 0dd1e3290d5..74ad74edfde 100644 --- a/dlls/shdocvw/webbrowser.c +++ b/dlls/shdocvw/webbrowser.c @@ -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)