summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorandy wharmby <wharmby@php.net>2007-02-01 18:05:10 +0000
committerandy wharmby <wharmby@php.net>2007-02-01 18:05:10 +0000
commitf5ffb540f0c28279039d10e0df57d0f3fe15f900 (patch)
tree6d4c2431d0408b3960b8112b656814ffdeb52b51 /ext/com_dotnet
parentf994b102c7bb37b56b4e9d5e279ad3424a9fd881 (diff)
downloadphp-git-f5ffb540f0c28279039d10e0df57d0f3fe15f900.tar.gz
ADW: Fixed COM extension bug #37927. Correct the processing of in/out arguments of type VT_DISPATCH|VT_REF
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_misc.c b/ext/com_dotnet/com_misc.c
index 9008a14584..a5adaedd36 100644
--- a/ext/com_dotnet/com_misc.c
+++ b/ext/com_dotnet/com_misc.c
@@ -79,7 +79,7 @@ PHPAPI void php_com_wrap_variant(zval *z, VARIANT *v,
VariantInit(&obj->v);
VariantCopyInd(&obj->v, v);
- if (V_VT(&obj->v) == VT_DISPATCH) {
+ if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) {
IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo);
}