diff options
| author | Wez Furlong <wez@php.net> | 2003-10-13 01:29:39 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2003-10-13 01:29:39 +0000 |
| commit | f27387c68cd1533c1aa2114208ae9a2ed5172be5 (patch) | |
| tree | 1e27803c1e931c063093613d97c4a93dfc186f9a /ext/com_dotnet | |
| parent | 7ca3d7cf7cc8b012aa56eed9c5e318fe899f5814 (diff) | |
| download | php-git-f27387c68cd1533c1aa2114208ae9a2ed5172be5.tar.gz | |
Fix possible segfault (this one came up when a method could not be found).
Add a couple of headers used by another file that is not yet ready to
commit.
Diffstat (limited to 'ext/com_dotnet')
| -rw-r--r-- | ext/com_dotnet/com_handlers.c | 4 | ||||
| -rw-r--r-- | ext/com_dotnet/php_com_dotnet_internal.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c index 7a51777023..72537c9943 100644 --- a/ext/com_dotnet/com_handlers.c +++ b/ext/com_dotnet/com_handlers.c @@ -316,7 +316,9 @@ static union _zend_function *com_method_get(zval *object, char *name, int len TS ITypeComp_Release(bindptr.lptcomp); break; } - ITypeInfo_Release(TI); + if (TI) { + ITypeInfo_Release(TI); + } } ITypeComp_Release(comp); efree(olename); diff --git a/ext/com_dotnet/php_com_dotnet_internal.h b/ext/com_dotnet/php_com_dotnet_internal.h index 90cc44760f..749306e12b 100644 --- a/ext/com_dotnet/php_com_dotnet_internal.h +++ b/ext/com_dotnet/php_com_dotnet_internal.h @@ -24,7 +24,9 @@ #define _WIN32_DCOM #define COBJMACROS #include <ocidl.h> -#include "oleauto.h" +#include <oleauto.h> +#include <unknwn.h> +#include <dispex.h> #include "win32/winutil.h" /* brain-death in winutil.h defines the macro to hide the useful function... */ |
