From 99034f294331209fbfa1d5efacf7fb25f88e227d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 29 Dec 2015 18:02:18 +0000 Subject: Toaster: forgotten cslocks git-svn-id: http://svn.miranda-ng.org/main/trunk@15966 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/toast_notification.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/Toaster/src/toast_notification.cpp') diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index 0b48c5c235..1d1c73aed4 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -11,7 +11,10 @@ ToastNotification::ToastNotification( void *pData ) : _text(text), _caption(caption), _imagePath(imagePath), _hContact(hContact), _pfnPopupProc(pWndProc), _pvPopupData(pData) { - lstNotifications.insert(this); + { + mir_cslock lck(csNotifications); + lstNotifications.insert(this); + } Windows::Foundation::GetActivationFactory(StringReferenceWrapper(RuntimeClass_Windows_UI_Notifications_ToastNotificationManager).Get(), ¬ificationManager); notificationManager->CreateToastNotifierWithId(StringReferenceWrapper(::AppUserModelID).Get(), ¬ifier); Create(¬ification); -- cgit v1.2.3