From ac58c21cba747bfb555e815e71c2b494626cef43 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 29 Dec 2016 02:19:12 +0000 Subject: [PATCH] Fix previous commit --- source/backend/CarlaStandalone.cpp | 2 +- source/utils/CarlaPipeUtils.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/backend/CarlaStandalone.cpp b/source/backend/CarlaStandalone.cpp index edf1e5be3..2b9c8c73a 100644 --- a/source/backend/CarlaStandalone.cpp +++ b/source/backend/CarlaStandalone.cpp @@ -320,7 +320,7 @@ bool carla_engine_init(const char* driverName, const char* clientName) { #ifndef BUILD_BRIDGE juce::initialiseJuce_GUI(); - if (std::getenv("CARLA_LOGS_DISABLED") != nullptr) + if (std::getenv("CARLA_LOGS_DISABLED") == nullptr) gStandalone.logThread.init(); #endif gStandalone.lastError = "No error"; diff --git a/source/utils/CarlaPipeUtils.cpp b/source/utils/CarlaPipeUtils.cpp index 6614b2bdf..725757bc5 100644 --- a/source/utils/CarlaPipeUtils.cpp +++ b/source/utils/CarlaPipeUtils.cpp @@ -767,6 +767,9 @@ bool CarlaPipeCommon::flushMessages() const noexcept try { return (::FlushFileBuffers(pData->pipeSend) != FALSE); } CARLA_SAFE_EXCEPTION_RETURN("CarlaPipeCommon::writeMsgBuffer", false); +#else + // nothing to do + return true; #endif }