Skip to content

Commit

Permalink
Mapi: Use mapi32.dll for default email client
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Jul 6, 2024
1 parent bbe4cc7 commit 2e49ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NAPS2.Sdk/ImportExport/Email/Mapi/SystemEmailClients.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2e49ccf

Please sign in to comment.