[Wine-patches] [3/3] mshtml: Allocate memory for BSTR value in HTMLElement_get_outerHTML (fix crashes 1C 8.0 for eterbug #1902)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Пн Дек 22 16:12:50 MSK 2008


May be, for Eterhack...

-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 876581f691b850573e50da6addc26bb476f06454 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Mon, 22 Dec 2008 16:02:46 +0300
Subject: [PATCH] mshtml: Allocate memory for BSTR value in HTMLElement_get_outerHTML (fix crashes 1C 8.0 for eterbug #1902)

---
 dlls/mshtml/htmlelem.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 12b2154..e39198e 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -925,6 +925,9 @@ static HRESULT WINAPI HTMLElement_put_outerHTML(IHTMLElement *iface, BSTR v)
 static HRESULT WINAPI HTMLElement_get_outerHTML(IHTMLElement *iface, BSTR *p)
 {
     HTMLElement *This = HTMLELEM_THIS(iface);
+    WCHAR eterfix1902[] = {' ',0};
+
+    *p = SysAllocString(eterfix1902);
     FIXME("(%p)->(%p)\n", This, p);
     return E_NOTIMPL;
 }
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches