From d38f944d1c743c3239d83adc3e4e9ac5df04d6b4 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 2 Aug 2004 18:02:48 +0000 Subject: [PATCH] Better error reporting --- ext/com_dotnet/com_dotnet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1