mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Win32 Sys_Quit(): Don't use printf() after fclose(stdout)
causes an assertion in MSVC's CRT
This commit is contained in:
parent
4a02c790e9
commit
d0507ef04a
1 changed files with 2 additions and 2 deletions
|
@ -97,14 +97,14 @@ Sys_Quit(void)
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf( "------------------------------------\n" );
|
||||||
|
|
||||||
/* Close stdout and stderr */
|
/* Close stdout and stderr */
|
||||||
#ifndef DEDICATED_ONLY
|
#ifndef DEDICATED_ONLY
|
||||||
fclose(stdout);
|
fclose(stdout);
|
||||||
fclose(stderr);
|
fclose(stderr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf("------------------------------------\n");
|
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue