- Made CRC checking from CD-ROM or a network drive faster
- Some more optimizations git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3225 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
69e2d02cc7
commit
acf798c33b
3 changed files with 18 additions and 13 deletions
|
@ -152,7 +152,7 @@ void NSISCALL trimslashtoend(char *buf)
|
|||
|
||||
int NSISCALL validpathspec(char *ubuf)
|
||||
{
|
||||
char dl = ubuf[0] | 0x20; // convert drive letter to lower case
|
||||
char dl = ubuf[0] | 0x20; // convert alleged drive letter to lower case
|
||||
return ((*(WORD*)ubuf==CHAR2_TO_WORD('\\','\\')) || (dl >= 'a' && dl <= 'z' && *CharNext(ubuf)==':'));
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ char * NSISCALL my_GetTempFileName(char *buf, const char *dir)
|
|||
while (n--)
|
||||
{
|
||||
char prefix[4] = "nsa";
|
||||
prefix[2] = 'a' + (char)(GetTickCount() % 26);
|
||||
prefix[2] += (char)(GetTickCount() % 26);
|
||||
if (GetTempFileName(dir, prefix, 0, buf))
|
||||
return buf;
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ int NSISCALL myatoi(char *s)
|
|||
m=8; // base of 8
|
||||
t='7'; // cap top at 7
|
||||
}
|
||||
if (s[0] == 'x' || s[0] == 'X')
|
||||
if ((s[0] & ~0x20) == 'X')
|
||||
{
|
||||
m=16; // base of 16
|
||||
s++; // advance over 'x'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue