let GetStringFromParm call validate_filename
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5201 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8f7c0e3679
commit
6b5f50b4d6
1 changed files with 2 additions and 4 deletions
|
@ -1456,12 +1456,10 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
{
|
||||
int ret=-666;
|
||||
HANDLE hFile;
|
||||
char *buf1=GetStringFromParm(0x10);
|
||||
char *buf1=GetStringFromParm(-0x10);
|
||||
|
||||
if (!validpathspec(buf1))
|
||||
GetStringFromParm(0x13);
|
||||
|
||||
validate_filename(buf1);
|
||||
GetStringFromParm(-0x13);
|
||||
|
||||
remove_ro_attr(buf1);
|
||||
hFile=myOpenFile(buf1,GENERIC_WRITE,CREATE_ALWAYS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue