use case insensitive string comparison

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3877 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-01-14 18:35:21 +00:00
parent 8548aa10e3
commit d13a22587c

View file

@ -3,6 +3,7 @@
#include <string>
#include <set>
#include <string.h> // for stricmp()
#include <ctype.h> // for tolower()
using namespace std;
@ -125,7 +126,7 @@ bool dir_reader::is_excluded(const string& name) const {
iterator e = m_excluded.end();
for (; i != e; i++) {
if (name == *i) {
if (!::stricmp(name.c_str(), i->c_str())) {
return true;
}
}