summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_variant.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-03 20:10:58 +0000
committerWez Furlong <wez@php.net>2004-05-03 20:10:58 +0000
commit173cf836298c9d09d43b300569f4b5f9bb939cea (patch)
treeea1bdf9dc177f7673b85b915f7ee1c4aa670dd2d /ext/com_dotnet/com_variant.c
parent92d87a6a8d100ea361af3344192410630c75accd (diff)
downloadphp-git-173cf836298c9d09d43b300569f4b5f9bb939cea.tar.gz
Enable writing to SafeArray dimensions.
Diffstat (limited to 'ext/com_dotnet/com_variant.c')
-rw-r--r--ext/com_dotnet/com_variant.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index ccb8c18321..347a015c52 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -444,10 +444,7 @@ static void variant_binary_operation(enum variant_binary_opcode op, INTERNAL_FUN
if (SUCCEEDED(result)) {
php_com_wrap_variant(return_value, &vres, codepage TSRMLS_CC);
} else {
- char *werr;
- werr = php_win_err(result);
- php_com_throw_exception(result, werr TSRMLS_CC);
- LocalFree(werr);
+ php_com_throw_exception(result, NULL TSRMLS_CC);
}
VariantClear(&vres);
@@ -606,10 +603,7 @@ static void variant_unary_operation(enum variant_unary_opcode op, INTERNAL_FUNCT
if (SUCCEEDED(result)) {
php_com_wrap_variant(return_value, &vres, codepage TSRMLS_CC);
} else {
- char *werr;
- werr = php_win_err(result);
- php_com_throw_exception(result, werr TSRMLS_CC);
- LocalFree(werr);
+ php_com_throw_exception(result, NULL TSRMLS_CC);
}
VariantClear(&vres);