From d1963a84cf69f801100367871744a4e1092d2bbc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Sep 2013 13:44:21 +0000 Subject: crash fix for import in BasicHistory git-svn-id: http://svn.miranda-ng.org/main/trunk@6181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/HistoryWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/BasicHistory/src/HistoryWindow.cpp b/plugins/BasicHistory/src/HistoryWindow.cpp index ccadabfe9e..60753d828e 100644 --- a/plugins/BasicHistory/src/HistoryWindow.cpp +++ b/plugins/BasicHistory/src/HistoryWindow.cpp @@ -2160,8 +2160,8 @@ void HistoryWindow::DoImport(IImport::ImportType type) std::wstring err; std::vector contacts; - for(hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) - contacts.push_back(hContact); + for(HANDLE _hContact = db_find_first(); _hContact != NULL; _hContact = db_find_next(_hContact)) + contacts.push_back(_hContact); bool changeContact = false; HANDLE lastContact = hContact; -- cgit v1.2.3