Jacek Caban : mshtml: Use heap_alloc_zero in HTMLElementCollection_Create.

Alexandre Julliard julliard at winehq.org
Wed Jun 18 12:56:44 CDT 2008


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Jun 18 00:10:47 2008 +0200

mshtml: Use heap_alloc_zero in HTMLElementCollection_Create.

---

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

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 67a9611..4ad3c73 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -1832,7 +1832,7 @@ IHTMLElementCollection *create_all_collection(HTMLDOMNode *node)
 static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk,
             HTMLElement **elems, DWORD len)
 {
-    HTMLElementCollection *ret = heap_alloc(sizeof(HTMLElementCollection));
+    HTMLElementCollection *ret = heap_alloc_zero(sizeof(HTMLElementCollection));
 
     ret->lpHTMLElementCollectionVtbl = &HTMLElementCollectionVtbl;
     ret->ref = 1;




More information about the wine-cvs mailing list