mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-04 15:01:06 +00:00
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:
parent
fb528550e2
commit
7bd814e31e
1 changed files with 1 additions and 4 deletions
|
@ -214,10 +214,7 @@ Sys_Init(void)
|
||||||
|
|
||||||
if (dedicated->value)
|
if (dedicated->value)
|
||||||
{
|
{
|
||||||
if (!AllocConsole())
|
AllocConsole();
|
||||||
{
|
|
||||||
Sys_Error("Couldn't create dedicated server console");
|
|
||||||
}
|
|
||||||
|
|
||||||
hinput = GetStdHandle(STD_INPUT_HANDLE);
|
hinput = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
houtput = GetStdHandle(STD_OUTPUT_HANDLE);
|
houtput = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
Loading…
Reference in a new issue