applied patch #1381929 - StrCmpS - case-sensitive string comparison
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4468 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
817378e7e3
commit
58b07e69c6
6 changed files with 23 additions and 4 deletions
|
@ -581,10 +581,18 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case EW_STRCMP: {
|
||||
case EW_STRCMP:
|
||||
{
|
||||
char *buf2=GetStringFromParm(0x20);
|
||||
char *buf3=GetStringFromParm(0x31);
|
||||
if (!lstrcmpi(buf2,buf3)) return parm2;
|
||||
if (!parm4) {
|
||||
// case insensitive
|
||||
if (!lstrcmpi(buf2,buf3)) return parm2;
|
||||
}
|
||||
else {
|
||||
// case sensitive
|
||||
if (!lstrcmp(buf2,buf3)) return parm2;
|
||||
}
|
||||
}
|
||||
return parm3;
|
||||
#endif//NSIS_SUPPORT_STROPTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue