[PATCH] Supply a default value for get_designMode
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Thu Oct 30 04:46:39 CDT 2008
---
dlls/mshtml/htmldoc.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 01d52a2..07d2fc6 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -440,8 +440,15 @@ static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
{
HTMLDocument *This = HTMLDOC_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ static WCHAR szOff[] = {'O','f','f',0};
+ FIXME("(%p)->(%p) always returning Off\n", This, p);
+
+ if(!p)
+ return E_INVALIDARG;
+
+ *p = SysAllocString(szOff);
+
+ return S_OK;
}
static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
--
1.5.4.3
--------------030002060304040603010400--
More information about the wine-patches
mailing list