mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
oleaut32: Release interfaces when told to.
Make the VT_DISPATCH and VT_UNKNOWN cases of serialize_param match the TKIND_INTERFACE case below by releasing their respective interfaces as necessary.
This commit is contained in:
parent
af7c076337
commit
ec5d73910c
@ -668,11 +668,15 @@ serialize_param(
|
||||
if (debugout) TRACE_(olerelay)("unk(0x%lx)",*arg);
|
||||
if (writeit)
|
||||
hres = _marshal_interface(buf,&IID_IUnknown,(LPUNKNOWN)*arg);
|
||||
if (dealloc)
|
||||
IUnknown_Release((LPUNKNOWN)*arg);
|
||||
return hres;
|
||||
case VT_DISPATCH:
|
||||
if (debugout) TRACE_(olerelay)("idisp(0x%lx)",*arg);
|
||||
if (writeit)
|
||||
hres = _marshal_interface(buf,&IID_IDispatch,(LPUNKNOWN)*arg);
|
||||
if (dealloc)
|
||||
IUnknown_Release((LPUNKNOWN)*arg);
|
||||
return hres;
|
||||
case VT_VOID:
|
||||
if (debugout) TRACE_(olerelay)("<void>");
|
||||
|
Loading…
Reference in New Issue
Block a user