Alistair Leslie-Hughes : mshtml: Supply a default value for get_designMode.

Alexandre Julliard julliard at winehq.org
Thu Oct 30 10:10:30 CDT 2008


Module: wine
Branch: master
Commit: 3a0a3453ffd75d132ea2a2563e70d22321a117c3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a0a3453ffd75d132ea2a2563e70d22321a117c3

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Thu Oct 30 20:46:39 2008 +1100

mshtml: Supply a default value for get_designMode.

---

 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)




More information about the wine-cvs mailing list