cvs: php4 /ext/com COM.c
| From: | Harald Radi | Date: | Tue, 14 Aug 2001 00:48:14 +0000 |
| Subject: | cvs: php4 /ext/com COM.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6810@lists.php.net to get a copy of this message | ||
phanto Mon Aug 13 20:48:14 2001 EDT
Modified files:
/php4/ext/com COM.c
Log:
hresult is returned if no return type is specified
Index: php4/ext/com/COM.c
diff -u php4/ext/com/COM.c:1.42 php4/ext/com/COM.c:1.43
--- php4/ext/com/COM.c:1.42 Mon Aug 13 20:28:53 2001
+++ php4/ext/com/COM.c Mon Aug 13 20:48:14 2001
@@ -162,6 +162,13 @@
}
}
+ if(!pVarResult)
+ {
+ VariantInit(pVarResult);
+ V_VT(pVarResult) = VT_I4;
+ V_I4(pVarResult) = hr;
+ }
+
return hr;
}
else