From c382bd20710abcee08b09a4d77203e7842c8b86a Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 13 Jun 2008 16:31:14 +0000 Subject: [PATCH] applied patch #1986692 - Close LOG file when LogSet is set to Off. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5647 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 516a859d..7480d47f 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -1514,7 +1514,10 @@ static int NSISCALL ExecuteEntry(entry *entry_) log_dolog=parm1; log_printf2("logging set to %d",parm1); #if !defined(NSIS_CONFIG_LOG_ODS) && !defined(NSIS_CONFIG_LOG_STDOUT) - if (parm1) build_g_logfile(); + if (parm1) + build_g_logfile(); + else + log_write(1); #endif } else