From 4fd191d45873a83eb0b93aebc9677d3e6dbb84c6 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 7 Oct 2015 19:42:53 +0000 Subject: Non-IM Contact: - Minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@15517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Non-IM Contact/src/files.cpp b/plugins/Non-IM Contact/src/files.cpp index 4bc5520225..844181228f 100644 --- a/plugins/Non-IM Contact/src/files.cpp +++ b/plugins/Non-IM Contact/src/files.cpp @@ -180,7 +180,7 @@ INT_PTR CALLBACK DlgProcFiles(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) if (!InternetDownloadFile(text)) { for (int i = 0;; i++) { mir_snprintf(fn, "fn%d", i); - if (!db_get_static(NULL, MODNAME, fn, text, _countof(text))) { + if (db_get_static(NULL, MODNAME, fn, text, _countof(text))) { mir_snprintf(szFileName, "%s\\plugins\\%s.html", getMimDir(temp), fn); if (savehtml(szFileName)) { mir_snprintf(fn, "fn%d", i); @@ -212,7 +212,7 @@ INT_PTR CALLBACK DlgProcFiles(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) for (int i = 0;; i++) { char file[MAX_PATH]; mir_snprintf(fn, "fn%d", i); - if (!db_get_static(NULL, MODNAME, fn, file, _countof(file))) { + if (db_get_static(NULL, MODNAME, fn, file, _countof(file))) { if (Openfile(file, 1)) { db_set_s(NULL, MODNAME, fn, file); int index = SendDlgItemMessageA(hwnd, IDC_FILE_LIST, CB_ADDSTRING, 0, (LPARAM)file); -- cgit v1.2.3