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.
This commit is contained in:
Wez Furlong 2003-10-13 01:29:39 +00:00
parent 7ca3d7cf7c
commit f27387c68c
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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... */