Module: wine Branch: master Commit: da4608227fa33701931b0663c95749ced03a586b URL: http://source.winehq.org/git/wine.git/?a=commit;h=da4608227fa33701931b0663c9...
Author: Jacek Caban jacek@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;