dispex: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5b4009e8c2
commit
a6e2902d1f
|
@ -134,7 +134,7 @@ HRESULT __RPC_STUB IDispatchEx_InvokeEx_Stub(IDispatchEx* This, DISPID id, LCID
|
||||||
any on return. */
|
any on return. */
|
||||||
if(byref_args)
|
if(byref_args)
|
||||||
{
|
{
|
||||||
vt_list = HeapAlloc(GetProcessHeap(), 0, pdp->cArgs * sizeof(vt_list[0]));
|
vt_list = malloc(pdp->cArgs * sizeof(vt_list[0]));
|
||||||
if(!vt_list) return E_OUTOFMEMORY;
|
if(!vt_list) return E_OUTOFMEMORY;
|
||||||
for(arg = 0; arg < pdp->cArgs; arg++)
|
for(arg = 0; arg < pdp->cArgs; arg++)
|
||||||
vt_list[arg] = V_VT(pdp->rgvarg + arg);
|
vt_list[arg] = V_VT(pdp->rgvarg + arg);
|
||||||
|
@ -166,6 +166,6 @@ HRESULT __RPC_STUB IDispatchEx_InvokeEx_Stub(IDispatchEx* This, DISPID id, LCID
|
||||||
for(arg = 0; arg < byref_args; arg++)
|
for(arg = 0; arg < byref_args; arg++)
|
||||||
VariantInit(pdp->rgvarg + ref_idx[arg]);
|
VariantInit(pdp->rgvarg + ref_idx[arg]);
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, vt_list);
|
free(vt_list);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue