Piotr Caban : mshtml: Allocate smaller cookies buffer size in HTMLDocument_get_cookie.

Alexandre Julliard julliard at winehq.org
Wed Apr 24 13:45:58 CDT 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Wed Apr 24 11:50:23 2013 +0200

mshtml: Allocate smaller cookies buffer size in HTMLDocument_get_cookie.

---

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

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 36308f0..c6a7193 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -708,7 +708,7 @@ static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
         return S_OK;
     }
 
-    *p = SysAllocStringLen(NULL, size-1);
+    *p = SysAllocStringLen(NULL, size/sizeof(WCHAR)-1);
     if(!*p)
         return E_OUTOFMEMORY;
 




More information about the wine-cvs mailing list