summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-13 14:27:38 +0100
committerAnatol Belski <ab@php.net>2014-11-13 19:57:30 +0100
commit5f81cfe097219dfc77eb63ad6613246f07f16850 (patch)
tree6dda471b90d11113c19e1e7b4bf9eb8adc0ef326
parentc865472ef0c431cf3c6ec153736881d13e8a6883 (diff)
downloadphp-git-5f81cfe097219dfc77eb63ad6613246f07f16850.tar.gz
fix datatype mismatch and kick unused var
-rw-r--r--ext/com_dotnet/com_com.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index e1a9503dff..7de6d949bb 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -254,7 +254,7 @@ PHP_FUNCTION(com_create_instance)
ITypeLib_Release(TL);
}
} else if (obj->typeinfo && COMG(autoreg_on)) {
- int idx;
+ UINT idx;
if (SUCCEEDED(ITypeInfo_GetContainingTypeLib(obj->typeinfo, &TL, &idx))) {
/* check if the library is already in the cache by getting its name */
@@ -693,7 +693,6 @@ PHP_FUNCTION(com_event_sink)
{
zval *object, *sinkobject, *sink=NULL;
char *dispname = NULL, *typelibname = NULL;
- zend_bool gotguid = 0;
php_com_dotnet_object *obj;
ITypeInfo *typeinfo = NULL;