scrobj: Zero initialize scriptlet instance.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
621c2de460
commit
e10d8f6dfb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue