From 7bd814e31e0a00faedcd5db19e69426110e9d3fd Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sun, 3 Jun 2012 22:27:30 +0200 Subject: [PATCH] Ignore errors of AllocConsole() This errors are harmless and thrown when the process is already attached to a console. Since the dedicated server is a console application the console is created by Windows at startup... --- src/windows/system.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/windows/system.c b/src/windows/system.c index 2b9d92e7..648ca368 100644 --- a/src/windows/system.c +++ b/src/windows/system.c @@ -214,10 +214,7 @@ Sys_Init(void) if (dedicated->value) { - if (!AllocConsole()) - { - Sys_Error("Couldn't create dedicated server console"); - } + AllocConsole(); hinput = GetStdHandle(STD_INPUT_HANDLE); houtput = GetStdHandle(STD_OUTPUT_HANDLE);