Skip to content

Commit 7ad351c

Browse files
committed
Helper comment
1 parent 1d44683 commit 7ad351c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ private static IntPtr ResolveDll(string libraryName, Assembly assembly, DllImpor
140140

141141
private const uint LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000;
142142

143+
// Use AddDllDirectory + LoadLibraryEx so that transitive native dependencies
144+
// (e.g. libssh2 -> libcrypto) in the same directory are resolved at load time.
143145
private static IntPtr LoadWindowsLibrary(string path)
144146
{
145147
var directory = Path.GetDirectoryName(path);

0 commit comments

Comments
 (0)