未验证 提交 edbd5c76 编写于 作者: Z Zoltan Varga 提交者: GitHub

[mono][aot] Use g_strcasecmp () to check whenever aot input assemblies are...

[mono][aot] Use g_strcasecmp () to check whenever aot input assemblies are loaded from the correct location. (#90065)

Fixes https://github.com/dotnet/runtime/issues/90030.
上级 7a942138
......@@ -1414,7 +1414,7 @@ main_thread_handler (gpointer user_data)
MonoImage *img;
img = mono_image_open (main_args->argv [i], &status);
if (img && strcmp (img->name, assembly->image->name)) {
if (img && g_strcasecmp (img->name, assembly->image->name)) {
fprintf (stderr, "Error: Loaded assembly '%s' doesn't match original file name '%s'. Set MONO_PATH to the assembly's location.\n", assembly->image->name, img->name);
exit (1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册