Module: wine Branch: master Commit: e10d8f6dfb613f986091813430afba75f95ea729 URL: https://source.winehq.org/git/wine.git/?a=commit;h=e10d8f6dfb613f98609181343...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Sep 25 19:22:26 2019 +0200
scrobj: Zero initialize scriptlet instance.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/scrobj/scrobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/scrobj/scrobj.c b/dlls/scrobj/scrobj.c index 9596c6b551..29116e29b1 100644 --- a/dlls/scrobj/scrobj.c +++ b/dlls/scrobj/scrobj.c @@ -1013,7 +1013,7 @@ static HRESULT create_scriptlet_instance(struct scriptlet_factory *factory, IDis struct scriptlet_instance *obj; HRESULT hres;
- if (!(obj = heap_alloc(sizeof(*obj)))) return E_OUTOFMEMORY; + if (!(obj = heap_alloc_zero(sizeof(*obj)))) return E_OUTOFMEMORY;
obj->IDispatchEx_iface.lpVtbl = &DispatchExVtbl; obj->ref = 1;