Fix path to SQLite.Interop.dll.

This assembly lives in the win32 and win64 subdirectories, and not in
the base path.

This fixes #4093.
This commit is contained in:
Kenneth Hsu
2020-02-17 09:34:39 -08:00
parent cb7f4483cd
commit 0a91bcf662
@@ -19,8 +19,8 @@
#endregion
using System;
using System.IO;
using Duplicati.Library.Common;
using Duplicati.Library.Common;
namespace Duplicati.Library.SQLiteHelper
{
public static class SQLiteLoader
@@ -189,8 +189,8 @@ namespace Duplicati.Library.SQLiteHelper
// This can be avoided if the preload in SQLite works, but it is easy to do it here as well
if (loadMixedModeAssembly)
{
try { PInvoke.LoadLibraryEx(Path.Combine(basePath, "SQLite.Interop.dll"), IntPtr.Zero, 0); }
catch (Exception ex) { Logging.Log.WriteExplicitMessage(LOGTAG, "LoadMixedModeSQLiteError", ex, "Failed to load the mixed mode SQLite database: {0}", Path.Combine(basePath, "SQLite.Interop.dll")); }
try { PInvoke.LoadLibraryEx(Path.Combine(assemblyPath, "SQLite.Interop.dll"), IntPtr.Zero, 0); }
catch (Exception ex) { Logging.Log.WriteExplicitMessage(LOGTAG, "LoadMixedModeSQLiteError", ex, "Failed to load the mixed mode SQLite database: {0}", Path.Combine(assemblyPath, "SQLite.Interop.dll")); }
}
}
else