aboutsummaryrefslogtreecommitdiff
path: root/primedev/logging
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/logging')
-rw-r--r--primedev/logging/logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/logging/logging.cpp b/primedev/logging/logging.cpp
index 72171e25..4367b384 100644
--- a/primedev/logging/logging.cpp
+++ b/primedev/logging/logging.cpp
@@ -124,9 +124,9 @@ void CustomSink::custom_log(const custom_log_msg& msg)
void InitialiseConsole()
{
- if (AllocConsole() == FALSE)
+ if (GetConsoleWindow() == NULL && AllocConsole() == FALSE)
{
- std::cout << "[*] Failed to create a console window, maybe a console already exists?" << std::endl;
+ std::cout << "[*] Failed to create a console window" << std::endl;
}
else
{