From: andy wharmby Date: Thu, 1 Feb 2007 18:05:10 +0000 (+0000) Subject: ADW: Fixed COM extension bug #37927. Correct the processing of in/out arguments... X-Git-Tag: RELEASE_1_0_0RC1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5ffb540f0c28279039d10e0df57d0f3fe15f900;p=php ADW: Fixed COM extension bug #37927. Correct the processing of in/out arguments of type VT_DISPATCH|VT_REF --- 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); }