diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-03 22:50:47 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-03 22:50:47 -0500 |
commit | 711a5031d015a9fde7feb61905473b52d9cc3369 (patch) | |
tree | 0cace52b62bbfa1e83af8710c887b387ca6cabe1 /mailnews/base/src/nsMessengerWinIntegration.cpp | |
parent | 37fbbd447b96b72f3e07e18e72509de01f94b7eb (diff) | |
download | UXP-711a5031d015a9fde7feb61905473b52d9cc3369.tar UXP-711a5031d015a9fde7feb61905473b52d9cc3369.tar.gz UXP-711a5031d015a9fde7feb61905473b52d9cc3369.tar.lz UXP-711a5031d015a9fde7feb61905473b52d9cc3369.tar.xz UXP-711a5031d015a9fde7feb61905473b52d9cc3369.zip |
Issue #1258 - Part 7: UXP Specific fixes
* This includes Bug 1326433 for Janek fallout (ldap already had this fix)
Diffstat (limited to 'mailnews/base/src/nsMessengerWinIntegration.cpp')
-rw-r--r-- | mailnews/base/src/nsMessengerWinIntegration.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/mailnews/base/src/nsMessengerWinIntegration.cpp b/mailnews/base/src/nsMessengerWinIntegration.cpp index a014b9737..98888fcb3 100644 --- a/mailnews/base/src/nsMessengerWinIntegration.cpp +++ b/mailnews/base/src/nsMessengerWinIntegration.cpp @@ -56,7 +56,6 @@ #define NOTIFICATIONCLASSNAME "MailBiffNotificationMessageWindow" #define UNREADMAILNODEKEY "Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\" -#define SHELL32_DLL L"shell32.dll" #define DOUBLE_QUOTE "\"" #define MAIL_COMMANDLINE_ARG " -mail" #define IDI_MAILBIFF 32576 @@ -336,14 +335,6 @@ nsMessengerWinIntegration::Init() { nsresult rv; - // Get shell32.dll handle - HMODULE hModule = ::GetModuleHandleW(SHELL32_DLL); - - if (hModule) { - // SHQueryUserNotificationState is available from Vista - mSHQueryUserNotificationState = (fnSHQueryUserNotificationState)GetProcAddress(hModule, "SHQueryUserNotificationState"); - } - nsCOMPtr <nsIMsgAccountManager> accountManager = do_GetService(NS_MSGACCOUNTMANAGER_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv,rv); @@ -492,9 +483,10 @@ nsresult nsMessengerWinIntegration::ShowNewAlertNotification(bool aUserInitiated prefBranch->GetBoolPref(SHOW_ALERT_PREF, &showAlert); // check if we are allowed to show a notification - if (showAlert && mSHQueryUserNotificationState) { - MOZ_QUERY_USER_NOTIFICATION_STATE qstate; - if (SUCCEEDED(mSHQueryUserNotificationState(&qstate))) { + if (showAlert) { + QUERY_USER_NOTIFICATION_STATE qstate; + + if (SUCCEEDED(SHQueryUserNotificationState(&qstate))) { if (qstate != QUNS_ACCEPTS_NOTIFICATIONS) { showAlert = false; } |