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:
parent
8548aa10e3
commit
d13a22587c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue