Commit 9030ff2c authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

oleaut32: Don't try to release NULL COM objects in the typelib

marshaler.
parent 792d89f5
...@@ -676,14 +676,14 @@ serialize_param( ...@@ -676,14 +676,14 @@ serialize_param(
if (debugout) TRACE_(olerelay)("unk(0x%lx)",*arg); if (debugout) TRACE_(olerelay)("unk(0x%lx)",*arg);
if (writeit) if (writeit)
hres = _marshal_interface(buf,&IID_IUnknown,(LPUNKNOWN)*arg); hres = _marshal_interface(buf,&IID_IUnknown,(LPUNKNOWN)*arg);
if (dealloc) if (dealloc && *(IUnknown **)arg)
IUnknown_Release((LPUNKNOWN)*arg); IUnknown_Release((LPUNKNOWN)*arg);
return hres; return hres;
case VT_DISPATCH: case VT_DISPATCH:
if (debugout) TRACE_(olerelay)("idisp(0x%lx)",*arg); if (debugout) TRACE_(olerelay)("idisp(0x%lx)",*arg);
if (writeit) if (writeit)
hres = _marshal_interface(buf,&IID_IDispatch,(LPUNKNOWN)*arg); hres = _marshal_interface(buf,&IID_IDispatch,(LPUNKNOWN)*arg);
if (dealloc) if (dealloc && *(IUnknown **)arg)
IUnknown_Release((LPUNKNOWN)*arg); IUnknown_Release((LPUNKNOWN)*arg);
return hres; return hres;
case VT_VOID: case VT_VOID:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment