shdocvw: Return correct error from WebBrowser::Quit.

This commit is contained in:
Jacek Caban 2007-11-20 01:49:20 +01:00 committed by Alexandre Julliard
parent a8a1a2da5a
commit e37ca6f927
2 changed files with 10 additions and 2 deletions

View File

@ -1147,6 +1147,11 @@ static void test_ie_funcs(IUnknown *unk)
hres = IWebBrowser2_get_Application(wb, NULL);
ok(hres == E_POINTER, "get_Application failed: %08x, expected E_POINTER\n", hres);
/* Quit */
hres = IWebBrowser2_Quit(wb);
ok(hres == E_FAIL, "Quit failed: %08x, expected E_FAIL\n", hres);
IWebBrowser2_Release(wb);
}

View File

@ -457,8 +457,11 @@ static HRESULT WINAPI WebBrowser_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBo
static HRESULT WINAPI WebBrowser_Quit(IWebBrowser2 *iface)
{
WebBrowser *This = WEBBROWSER_THIS(iface);
FIXME("(%p)\n", This);
return E_NOTIMPL;
TRACE("(%p)\n", This);
/* It's a InternetExplorer specific method, we have nothing to do here. */
return E_FAIL;
}
static HRESULT WINAPI WebBrowser_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)