summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/import.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-17 23:15:57 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-17 23:15:57 +0000
commit65cf85ee6e83594f4de5d6d06012bde070b6c6b1 (patch)
tree50b3747038b77088ee0bef29f6594a74807397c3 /protocols/Gadu-Gadu/src/import.cpp
parent2d26921c87c663de4725963d7da87c6eacd1e3d3 (diff)
GaduGadu: Cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@14241 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/import.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/import.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Gadu-Gadu/src/import.cpp b/protocols/Gadu-Gadu/src/import.cpp
index b82a30418f..6922b85c2c 100644
--- a/protocols/Gadu-Gadu/src/import.cpp
+++ b/protocols/Gadu-Gadu/src/import.cpp
@@ -385,6 +385,7 @@ INT_PTR GGPROTO::import_text(WPARAM wParam, LPARAM lParam)
mir_free(contacts);
MessageBox(NULL, TranslateT("List import successful."), m_tszUserName, MB_OK | MB_ICONINFORMATION);
+ return 0;
}
else
{
@@ -392,9 +393,9 @@ INT_PTR GGPROTO::import_text(WPARAM wParam, LPARAM lParam)
mir_sntprintf(error, TranslateT("List cannot be imported from file \"%s\" because of error:\n\t%s (Error: %d)"), str, _tcserror(errno), errno);
MessageBox(NULL, error, m_tszUserName, MB_OK | MB_ICONSTOP);
debugLog(_T("import_text(): Cannot import list from file \"%s\". errno=%d: %s"), str, errno, strerror(errno));
+ fclose(f);
+ return 0;
}
-
- return 0;
}
INT_PTR GGPROTO::export_text(WPARAM wParam, LPARAM lParam)