From 1431ba235ba418ba6d09fa9a1a5b35f059b14e38 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 27 Oct 2009 19:16:55 +0000 Subject: [PATCH] - Fixed crash in com_print_typeinfo when an invalid typelib is given --- ext/com_dotnet/com_typeinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c index 90a21860ca9..772f1f30a0b 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) {