Skip to content

Commit 90fcd0d

Browse files
author
Harald Radi
committed
fixed VT_VARIANT type
1 parent 12ab3bb commit 90fcd0d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ext/com/conversion.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ static void pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, int type, int c
380380
}
381381
break;
382382

383+
case VT_VARIANT:
384+
php_error(E_WARNING,"VT_VARIANT is invalid. Use VT_VARIANT|VT_BYREF instead.");
385+
/* break missing intentionally */
383386
case VT_VARIANT|VT_BYREF:
384387
{
385388
int tp;

ext/rpc/com/conversion.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ static void pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, int type, int c
380380
}
381381
break;
382382

383+
case VT_VARIANT:
384+
php_error(E_WARNING,"VT_VARIANT is invalid. Use VT_VARIANT|VT_BYREF instead.");
385+
/* break missing intentionally */
383386
case VT_VARIANT|VT_BYREF:
384387
{
385388
int tp;

0 commit comments

Comments
 (0)