Skip to content

Commit

Permalink
Follow the same logic for exporting symbols with MonoPInvokeCallbackA…
Browse files Browse the repository at this point in the history
…ttribute
  • Loading branch information
ivanpovazan committed Jan 13, 2023
1 parent ee12f0b commit b76425a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -5208,9 +5208,9 @@ add_wrappers (MonoAotCompile *acfg)
MONO_DISABLE_WARNING (4310) // cast truncates constant value
g_assert (*named != (char)0xFF);
MONO_RESTORE_WARNING
slen = mono_metadata_decode_value (named, &named);
slen = mono_metadata_decode_value (named, &named) + (int)strlen(acfg->user_symbol_prefix);
export_name = (char *)g_malloc (slen + 1);
memcpy (export_name, named, slen);
sprintf (export_name, "%s%s", acfg->user_symbol_prefix, named);
export_name [slen] = 0;
named += slen;
}
Expand Down

0 comments on commit b76425a

Please sign in to comment.