From 2e49ccfa4c613e2fbf233fc206d981a42ad5e826 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Sat, 6 Jul 2024 12:17:30 -0700 Subject: [PATCH] Mapi: Use mapi32.dll for default email client #383 --- NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs b/NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs index f31f5ce002..3b0b98e957 100644 --- a/NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs +++ b/NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs @@ -80,9 +80,9 @@ internal IntPtr GetLibrary(string? clientName) throw new Exception($"Could not find an entry point in dll for email: {dllPath}"); } - private static string GetDllPath(string? clientName) + private string GetDllPath(string? clientName) { - if (string.IsNullOrEmpty(clientName)) + if (string.IsNullOrEmpty(clientName) || clientName == GetDefaultName()) { return DEFAULT_MAPI_DLL; }