php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #50305
Patch accept-LPUNKNOWN revision 2013-02-20 14:36 UTC by user at kkdf2 dot sakura dot ne dot jp

Patch accept-LPUNKNOWN for COM related Bug #50305

Patch version 2013-02-20 14:36 UTC

Return to Bug #50305 | Download this patch
Patch Revisions:

Developer: user@kkdf2.sakura.ne.jp

diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index e870561..72209b9 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -227,7 +227,7 @@ PHP_COM_DOTNET_API int php_com_zval_from_variant(zval *z, VARIANT *v, int codepa
 					php_com_wrap_dispatch(z, disp, codepage TSRMLS_CC);
 					IDispatch_Release(disp);
 				} else {
-					ret = FAILURE;
+					php_com_wrap_variant(z, v, codepage TSRMLS_CC);
 				}
 			}
 			break;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC