We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d70e7f commit d69957aCopy full SHA for d69957a
Core/CoreFunctionsManager.cs
@@ -27,15 +27,13 @@ public class CoreFunctionsManager : IDisposable
27
28
public CoreFunctionsManager()
29
{
30
- internalCoreFunctionsHandle = NativeMethods.LoadLibrary(
31
- NativeMethods.IsUnix()
32
- ? CoreFunctionsModuleUnix
33
- : CoreFunctionsModuleWindows
34
- );
+ var libraryName = NativeMethods.IsUnix() ? CoreFunctionsModuleUnix : CoreFunctionsModuleWindows;
+
+ internalCoreFunctionsHandle = NativeMethods.LoadLibrary("./" + libraryName);
35
36
if (internalCoreFunctionsHandle.IsNull())
37
38
- throw new Exception();
+ throw new FileNotFoundException(libraryName);
39
}
40
41
internalCoreFunctions = new InternalCoreFunctions(internalCoreFunctionsHandle);
0 commit comments