mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
hresult is returned if no return type is specified
This commit is contained in:
parent
44ee05ae23
commit
c4022601e2
@ -162,6 +162,13 @@ PHPAPI HRESULT php_COM_invoke(comval *obj, DISPID dispIdMember, WORD wFlags, DIS
|
||||
}
|
||||
}
|
||||
|
||||
if(!pVarResult)
|
||||
{
|
||||
VariantInit(pVarResult);
|
||||
V_VT(pVarResult) = VT_I4;
|
||||
V_I4(pVarResult) = hr;
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
else
|
||||
|
@ -162,6 +162,13 @@ PHPAPI HRESULT php_COM_invoke(comval *obj, DISPID dispIdMember, WORD wFlags, DIS
|
||||
}
|
||||
}
|
||||
|
||||
if(!pVarResult)
|
||||
{
|
||||
VariantInit(pVarResult);
|
||||
V_VT(pVarResult) = VT_I4;
|
||||
V_I4(pVarResult) = hr;
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user