summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_dotnet.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-08-02 18:02:48 +0000
committerWez Furlong <wez@php.net>2004-08-02 18:02:48 +0000
commitd38f944d1c743c3239d83adc3e4e9ac5df04d6b4 (patch)
tree9f2fa1b0693c72c999b9ae86108043cec10d8b6f /ext/com_dotnet/com_dotnet.c
parent07979b3ce4bcd2507aade3ae4250139e5bfdcfbf (diff)
downloadphp-git-d38f944d1c743c3239d83adc3e4e9ac5df04d6b4.tar.gz
Better error reporting
Diffstat (limited to 'ext/com_dotnet/com_dotnet.c')
-rw-r--r--ext/com_dotnet/com_dotnet.c3
1 files changed, 2 insertions, 1 deletions
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;