CreateDireectory now sets the error flag only when really needed instead of almost always

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2195 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-02-20 18:47:58 +00:00
parent 37d3df69f0
commit 3c26c3bfd3
3 changed files with 7 additions and 4 deletions

View file

@ -258,7 +258,9 @@ static int NSISCALL ExecuteEntry(entry *entry_)
while (*p != '\\' && *p) p=CharNext(p);
c=*p;
*p=0;
g_flags.exec_error += !CreateDirectory(buf1,NULL);
if (!file_exists(buf1)) {
g_flags.exec_error += !CreateDirectory(buf1,NULL);
}
*p++ = c;
}
}