From b5a64faccf855f5afa8ae473fdd19243c40bb165 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 2 Oct 2015 17:22:30 +0000 Subject: Sessions: coverity fix (please, test it !) git-svn-id: http://svn.miranda-ng.org/main/trunk@15494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Sessions/Src') 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; -- cgit v1.2.3