From 9f7710ace6e362ad51c557dfb71d7ecf50f3b1f0 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 6 Feb 2010 17:04:37 +0000 Subject: [PATCH] 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 --- Source/exehead/exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index bf76f865..c034d349 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -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); }