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...
This commit is contained in:
Yamagi Burmeister 2012-06-03 22:27:30 +02:00
parent fb528550e2
commit 7bd814e31e

View file

@ -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);