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:
kichik 2007-07-14 10:53:35 +00:00
parent 8f7c0e3679
commit 6b5f50b4d6

View file

@ -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);