From 4005d927128d54c5ad9898fe018f1d1ea9a8a3fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 Jul 2014 20:43:37 +0000 Subject: forgotten ++ git-svn-id: http://svn.miranda-ng.org/main/trunk@9893 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 42c915b445..b1d0675469 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -257,7 +257,7 @@ static int getProfile1(TCHAR *szProfile, size_t cch, TCHAR *profiledir, BOOL * n switch (touchDatabase(newProfile, NULL)) { case 0: - if (++found == 1 && nodprof) + if (found == 0 && nodprof) _tcsncpy_s(szProfile, cch, newProfile, _TRUNCATE); case EGROKPRF_OBSOLETE: -- cgit v1.2.3