From: Wez Furlong Date: Mon, 2 Aug 2004 18:02:48 +0000 (+0000) Subject: Better error reporting X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d38f944d1c743c3239d83adc3e4e9ac5df04d6b4;p=php Better error reporting --- diff --git a/ext/com_dotnet/com_dotnet.c b/ext/com_dotnet/com_dotnet.c index 7199b91aa7..da142dfeac 100644 --- a/ext/com_dotnet/com_dotnet.c +++ b/ext/com_dotnet/com_dotnet.c @@ -152,7 +152,8 @@ PHP_FUNCTION(com_dotnet_create_instance) SUCCEEDED(IUnknown_QueryInterface(V_UNKNOWN(&retval), &IID_IObjectHandle, &handle))) { VARIANT unwrapped; - if (SUCCEEDED(IObjectHandle_Unwrap(handle, &unwrapped))) { + hr = IObjectHandle_Unwrap(handle, &unwrapped); + if (SUCCEEDED(hr)) { /* unwrapped is now the dispatch pointer we want */ V_DISPATCH(&obj->v) = V_DISPATCH(&unwrapped); V_VT(&obj->v) = VT_DISPATCH;