Skip to content

Commit

Permalink
Specify assembly so we search in relation to the same AppContext. Sho…
Browse files Browse the repository at this point in the history
…uld fix #556.

Signed-off-by: Jerome Haltom <[email protected]>
  • Loading branch information
wasabii authored Jul 12, 2024
1 parent e5e4c72 commit 166262b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IKVM.Runtime/LibIkvm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static nint LoadImpl(string nameOrPath)
return Externs.IKVM_dl_open(nameOrPath);
}
#else
return System.Runtime.InteropServices.NativeLibrary.TryLoad(nameOrPath, out var h) ? h : 0;
return System.Runtime.InteropServices.NativeLibrary.TryLoad(nameOrPath, typeof(LibIkvm).Assembly, null, out var h) ? h : 0;
#endif
}

Expand Down

0 comments on commit 166262b

Please sign in to comment.