summaryrefslogtreecommitdiff
path: root/plugins/Sessions
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-10-02 17:22:30 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-10-02 17:22:30 +0000
commitb5a64faccf855f5afa8ae473fdd19243c40bb165 (patch)
treea6c43a5dae8d218401b4978a8b78bad5be5e1b39 /plugins/Sessions
parent46930aabbf87e2e05224f5419da267f2a689511b (diff)
Sessions: coverity fix (please, test it !)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions')
-rw-r--r--plugins/Sessions/Src/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index c8afec37ea..ed2284efd0 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -540,7 +540,7 @@ int LoadSession(WPARAM, LPARAM lparam)
MCONTACT hContact;
MCONTACT session_list_t[255] = { 0 };
int mode = 0;
- if ((int)lparam >= g_ses_limit&&lparam != 256) {
+ if ((int)lparam >= g_ses_limit && lparam != 256) {
mode = 1;
lparam -= g_ses_limit;
}
@@ -575,7 +575,7 @@ int LoadSession(WPARAM, LPARAM lparam)
}
if (dup == i) {
- if (!hidden) {
+ if (!hidden[i]) {
if (g_bOtherWarnings)
MessageBox(NULL, TranslateT("This Session already opened"), TranslateT("Sessions Manager"), MB_OK | MB_ICONWARNING);
return 1;