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:
kichik 2010-02-06 17:04:37 +00:00
parent 3d12aaa1f0
commit 9f7710ace6

View file

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