]> 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 ac433e32672adcba6b64b0e521849d3b30febcc2..822d8c74902213615ebf5c5ac5d59baa97551a17 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) {