From 481296bc540cdbdd0efef87ddaa173c96619edc3 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 30 Apr 2015 05:46:23 +0000 Subject: minor critical section fix git-svn-id: http://svn.miranda-ng.org/main/trunk@13267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/history.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Popup/src/history.cpp b/plugins/Popup/src/history.cpp index 2d794a62a1..4bdb947fb8 100644 --- a/plugins/Popup/src/history.cpp +++ b/plugins/Popup/src/history.cpp @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "headers.h" -static CRITICAL_SECTION csPopupHistory; +static mir_cs csPopupHistory; static LIST arPopupHistory(SETTING_HISTORYSIZE_DEFAULT); static int popupHistoryBuffer = 0; @@ -56,7 +56,6 @@ void PopupHistoryResize() void PopupHistoryLoad() { - InitializeCriticalSection(&csPopupHistory); popupHistoryBuffer = db_get_w(NULL, MODULNAME, "HistorySize", SETTING_HISTORYSIZE_DEFAULT); } @@ -65,8 +64,6 @@ void PopupHistoryUnload() for (int i = 0; i < arPopupHistory.getCount(); ++i) FreeHistoryItem(arPopupHistory[i]); arPopupHistory.destroy(); - - DeleteCriticalSection(&csPopupHistory); } void PopupHistoryAdd(POPUPDATA2 *ppdNew) -- cgit v1.2.3