diff options
author | Harald Radi <phanto@php.net> | 2001-08-14 00:48:15 +0000 |
---|---|---|
committer | Harald Radi <phanto@php.net> | 2001-08-14 00:48:15 +0000 |
commit | c4022601e2050ee33efb964962210c2e96d2256f (patch) | |
tree | 8f68bfd834267d7009125c9ad3e41bc9f7425480 | |
parent | 44ee05ae23e6533aa7822807527ec18c5bedfc2e (diff) | |
download | php-git-c4022601e2050ee33efb964962210c2e96d2256f.tar.gz |
hresult is returned if no return type is specified
-rw-r--r-- | ext/com/COM.c | 7 | ||||
-rw-r--r-- | ext/rpc/com/com_wrapper.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ext/com/COM.c b/ext/com/COM.c index aeae84ddcf..3b455c1e9c 100644 --- a/ext/com/COM.c +++ b/ext/com/COM.c @@ -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 diff --git a/ext/rpc/com/com_wrapper.c b/ext/rpc/com/com_wrapper.c index aeae84ddcf..3b455c1e9c 100644 --- a/ext/rpc/com/com_wrapper.c +++ b/ext/rpc/com/com_wrapper.c @@ -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 |