diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 05:46:23 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 05:46:23 +0000 |
commit | 481296bc540cdbdd0efef87ddaa173c96619edc3 (patch) | |
tree | c567c305765d1c2b9cd5755c9facb40376b325a2 /plugins/Popup | |
parent | 1a93295088605de07b69ab0b505c28dd08b2d14b (diff) |
minor critical section fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@13267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup')
-rw-r--r-- | plugins/Popup/src/history.cpp | 5 |
1 files changed, 1 insertions, 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<POPUPDATA2> 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)
|