summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/dumper.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-14 14:52:25 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-14 14:52:25 +0000
commitad9ea188764830dad666490867c07a9891b7e854 (patch)
treea06e77f6a660082423bdd1f10253ba97eddb32a2 /plugins/CrashDumper/src/dumper.cpp
parent67a6632c79ee755a468b2d2bd28d470104f2b4da (diff)
CrashDumper: changed warning lavel to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/dumper.cpp')
-rw-r--r--plugins/CrashDumper/src/dumper.cpp10
1 files changed, 3 insertions, 7 deletions
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);
}