Win32 Sys_Quit(): Don't use printf() after fclose(stdout)

causes an assertion in MSVC's CRT
This commit is contained in:
Daniel Gibson 2022-02-27 04:18:52 +01:00
parent 4a02c790e9
commit d0507ef04a

View file

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