svn: /php/php-src/ branches/PHP_5_3/ext/com_dotnet/com_variant.c trunk/ext/com_dotnet/com_variant.c
| From: | Pierre Joye | Date: | Thu, 20 Jan 2011 06:54:28 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/com_dotnet/com_variant.c trunk/ext/com_dotnet/com_variant.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-64403@lists.php.net to get a copy of this message | ||
pajoye Thu, 20 Jan 2011 06:54:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307615
Log:
- fail when no known op are given
Changed paths:
U php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c
U php/php-src/trunk/ext/com_dotnet/com_variant.c
Modified: php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c 2011-01-20 06:49:17 UTC (rev 307614)
+++ php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c 2011-01-20 06:54:28 UTC (rev 307615)
@@ -593,6 +593,9 @@
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {
Modified: php/php-src/trunk/ext/com_dotnet/com_variant.c
===================================================================
--- php/php-src/trunk/ext/com_dotnet/com_variant.c 2011-01-20 06:49:17 UTC (rev 307614)
+++ php/php-src/trunk/ext/com_dotnet/com_variant.c 2011-01-20 06:54:28 UTC (rev 307615)
@@ -593,6 +593,9 @@
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {