From ad9ea188764830dad666490867c07a9891b7e854 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 14 Dec 2014 14:52:25 +0000 Subject: CrashDumper: changed warning lavel to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/dumper.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/CrashDumper/src/dumper.cpp') diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index 4418b40111..99317570b1 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -250,7 +250,6 @@ static void GetPluginsString(CMString& buffer, unsigned& flags) ListItem* lsttmp = dlllist; ListItem* lsttmppv = NULL; while (lsttmp != NULL) { - size_t sz = min(lsttmp->str.GetLength(), lst->str.GetLength()) - 2; if (lsttmp->str.CompareNoCase(lst->str) > 0) break; lsttmppv = lsttmp; @@ -268,8 +267,7 @@ static void GetPluginsString(CMString& buffer, unsigned& flags) ++count; } if (loaded) FreeLibrary(hModule); - } - while (FindNextFile(hFind, &FindFileData)); + } while (FindNextFile(hFind, &FindFileData)); FindClose(hFind); buffer.AppendFormat(TEXT("\r\n%sActive Plugins (%u):%s\r\n"), @@ -411,8 +409,7 @@ static void GetWeatherStrings(CMString& buffer, unsigned flags) timebuf, id); CloseHandle(hDumpFile); } - } - while (FindNextFile(hFind, &FindFileData)); + } while (FindNextFile(hFind, &FindFileData)); FindClose(hFind); } @@ -437,8 +434,7 @@ static void GetIconStrings(CMString& buffer) GetLastWriteTime(&FindFileData.ftLastWriteTime, timebuf, 30); buffer.AppendFormat(TEXT(" %s [%s]\r\n"), FindFileData.cFileName, timebuf); - } - while (FindNextFile(hFind, &FindFileData)); + } while (FindNextFile(hFind, &FindFileData)); FindClose(hFind); } -- cgit v1.2.3