[Wine-patches] mshtml: Allocate memory for BSTR value in HTMLDocument_get_charset (fix eterbug #3582)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Вт Мар 3 11:46:27 MSK 2009


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 2495dd2471b57f62d9f75116d02a440c8f33c8b3 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Tue, 3 Mar 2009 11:33:25 +0300
Subject: [PATCH] mshtml: Allocate memory for BSTR value in HTMLDocument_get_charset (fix eterbug #3582)

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

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 8d08651..cdba127 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -838,6 +838,9 @@ static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
 {
     HTMLDocument *This = HTMLDOC_THIS(iface);
+    WCHAR eterfix3582[] = {' ',0};
+
+    *p = SysAllocString(eterfix3582);
     FIXME("(%p)->(%p)\n", This, p);
     return E_NOTIMPL;
 }
-- 
1.6.1.3.GIT



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