hresult is returned if no return type is specified

This commit is contained in:
Harald Radi 2001-08-14 00:48:15 +00:00
parent 44ee05ae23
commit c4022601e2
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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