From: Pierre Joye Date: Tue, 27 Oct 2009 19:16:55 +0000 (+0000) Subject: - Fixed crash in com_print_typeinfo when an invalid typelib is given X-Git-Tag: php-5.4.0alpha1~191^2~2455 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cb5f993a2d5601f85541a64a7a7ceeba6200293;p=php - Fixed crash in com_print_typeinfo when an invalid typelib is given --- diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c index ac433e3267..822d8c7490 100644 --- a/ext/com_dotnet/com_typeinfo.c +++ b/ext/com_dotnet/com_typeinfo.c @@ -309,7 +309,7 @@ ITypeInfo *php_com_locate_typeinfo(char *typelibname, php_com_dotnet_object *obj } } else if (typelibname) { /* Fetch the typelibrary and use that to look things up */ - typelib = php_com_load_typelib(typelibname, obj->code_page TSRMLS_CC); + typelib = php_com_load_typelib(typelibname, CP_THREAD_ACP TSRMLS_CC); } if (!gotguid && dispname && typelib) {