]> granicus.if.org Git - php/commitdiff
- Fixed crash in com_print_typeinfo when an invalid typelib is given
authorPierre Joye <pajoye@php.net>
Tue, 27 Oct 2009 19:16:55 +0000 (19:16 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 27 Oct 2009 19:16:55 +0000 (19:16 +0000)
ext/com_dotnet/com_typeinfo.c

index 90a21860ca92efd94045c5a7c3249ef4c9279342..772f1f30a0be5d6a0d6403c2094d33b4908a358d 100644 (file)
@@ -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) {