Skip to content

Commit

Permalink
Fixed the issue that when coreclr references a dll in a path containi…
Browse files Browse the repository at this point in the history
…ng special symbols, the path is garbled and causes reading failure.
  • Loading branch information
XUMUMI committed Dec 11, 2024
1 parent a705875 commit c8d9b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/double/Edge.js/dotnetcore/coreclrembedding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ private static Assembly Assembly_Resolving(AssemblyLoadContext arg1, AssemblyNam
}

[SecurityCritical]
public static IntPtr GetFunc(string assemblyFile, string typeName, string methodName, IntPtr exception)
public static IntPtr GetFunc([MarshalAs(UnmanagedType.LPUTF8Str)]string assemblyFile, string typeName, string methodName, IntPtr exception)
{
try
{
Expand Down

0 comments on commit c8d9b5c

Please sign in to comment.