summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/pinggraph.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:55:19 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:55:19 +0000
commit87dd1548f9212c0721d37d511588b79783f55b69 (patch)
treef541e0281ae281f76db0aaedd9d4b875eba968ff /plugins/Ping/src/pinggraph.cpp
parentcf45ff050dad2570c3172e111d739a3ae11a9ec1 (diff)
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/pinggraph.cpp')
-rw-r--r--plugins/Ping/src/pinggraph.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Ping/src/pinggraph.cpp b/plugins/Ping/src/pinggraph.cpp
index cc2252a521..735d8a4bfa 100644
--- a/plugins/Ping/src/pinggraph.cpp
+++ b/plugins/Ping/src/pinggraph.cpp
@@ -23,7 +23,7 @@ LRESULT CALLBACK GraphWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
WindowData *wd = (WindowData *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
bool found = false;
- EnterCriticalSection(&data_list_cs);
+ mir_cslock lck(data_list_cs);
for(pinglist_it i = data_list.begin(); i != data_list.end(); ++i) {
if(i->item_id == wd->item_id) {
wd->list = history_map[wd->item_id];
@@ -31,7 +31,6 @@ LRESULT CALLBACK GraphWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
break;
}
}
- LeaveCriticalSection(&data_list_cs);
if(!found) {
PostMessage(hwnd, WM_CLOSE, 0, 0);