From 2c7ee57a18b8edbdbdd2b5c5456ea27485773c68 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 27 Jan 2006 18:06:46 +0000 Subject: [PATCH] check if log_dolog is set for NSIS_CONFIG_LOG_STDOUT as well git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4511 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index afca54bb..830c0947 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -819,7 +819,7 @@ void log_printf(char *format, ...) OutputDebugString(log_text); #endif #ifdef NSIS_CONFIG_LOG_STDOUT - if (GetStdHandle(STD_OUTPUT_HANDLE) != INVALID_HANDLE_VALUE) + if (log_dolog && GetStdHandle(STD_OUTPUT_HANDLE) != INVALID_HANDLE_VALUE) { DWORD dwBytes; WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), log_text, lstrlen(log_text), &dwBytes, NULL);