diff options
author | Ryan Lucia <rylucia@microsoft.com> | 2019-10-09 02:23:06 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-10-09 09:23:30 +0300 |
commit | 1cfb39203b3bd8454a6efd036548a0d4702828d7 (patch) | |
tree | 6d841dce4102844a932d70bcb19fcb7348e302e6 /netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | |
parent | cacf99b97314870585af79e78191b836f9e072b5 (diff) |
Replace InternalLoadUnmanagedDllFromPath with NativeLibrary.Load (#27090)
Both just call into NDirect::LoadLibraryFromPath, and so this simplifies the code by removing a superfluous QCall
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs')
-rw-r--r-- | netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs index 24805bf695f..c9d0c16b7ef 100644 --- a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs +++ b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs @@ -397,7 +397,7 @@ namespace System.Runtime.Loader throw new ArgumentException(SR.Argument_AbsolutePathRequired, nameof(unmanagedDllPath)); } - return InternalLoadUnmanagedDllFromPath(unmanagedDllPath); + return NativeLibrary.Load(unmanagedDllPath); } // Custom AssemblyLoadContext implementations can override this |