diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 19:42:53 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 19:42:53 +0000 |
commit | 4fd191d45873a83eb0b93aebc9677d3e6dbb84c6 (patch) | |
tree | c0e37d252bde492930a08f529cefe3ff7d40476f /plugins | |
parent | a5e65f02c7e37bed18fbca915e8040358d0f4fe7 (diff) |
Non-IM Contact:
- Minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Non-IM Contact/src/files.cpp | 4 |
1 files 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);
|