summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/toast_notification.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-25 18:47:53 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-25 18:47:53 +0000
commitc888cdec61b7c3fdf164b15841b6aa148f0148d5 (patch)
treed39082ace48565e27412f02aeace1b00d2719804 /plugins/Toaster/src/toast_notification.cpp
parent65c13e2c1fe1c205ac6c5e0062a6a99389fc9af0 (diff)
Toaster: crash fix; check in options for enable/disable
git-svn-id: http://svn.miranda-ng.org/main/trunk@15443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/toast_notification.cpp')
-rw-r--r--plugins/Toaster/src/toast_notification.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp
index acbb5d627c..0275920c64 100644
--- a/plugins/Toaster/src/toast_notification.cpp
+++ b/plugins/Toaster/src/toast_notification.cpp
@@ -77,9 +77,9 @@ HRESULT ToastNotification::Show(_In_ ToastEventHandler* handler)
{
ComPtr<ToastEventHandler> eventHandler(handler);
- notification->add_Activated(eventHandler.Get(), &_ertActivated);
- notification->add_Dismissed(eventHandler.Get(), &_ertDismissed);
- notification->add_Failed(eventHandler.Get(), &_ertFailed);
+ CHECKHR(notification->add_Activated(eventHandler.Get(), &_ertActivated));
+ CHECKHR(notification->add_Dismissed(eventHandler.Get(), &_ertDismissed));
+ CHECKHR(notification->add_Failed(eventHandler.Get(), &_ertFailed));
return notifier->Show(notification.Get());
}