applied patch #2920342 - add error checking to SetCurrentDirectory
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6029 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3d12aaa1f0
commit
9f7710ace6
1 changed files with 5 additions and 1 deletions
|
@ -349,7 +349,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
{
|
||||
update_status_text_buf1(LANG_OUTPUTDIR);
|
||||
mystrcpy(state_output_directory,buf1);
|
||||
SetCurrentDirectory(buf1);
|
||||
if (!SetCurrentDirectory(buf1))
|
||||
{
|
||||
log_printf3("SetCurrentDirectory(%s) failed (%d)",buf1,GetLastError());
|
||||
exec_error++;
|
||||
}
|
||||
}
|
||||
else update_status_text_buf1(LANG_CREATEDIR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue