bugfix: AC crashes when settings->misc->showdocsdetail=debug is set and then /conne<TAB> is typed in the console afterwards

This commit is contained in:
drian
2021-03-08 16:10:42 +01:00
parent 280891b9c0
commit 9dfdae3ba4
+4
View File
@@ -1124,6 +1124,10 @@ int main(int argc, char **argv)
__try {
#endif
#endif
// VS2017+ does not support %n in format strings by default due to security concerns.
// However, currently we are making use of this functionality and therefore it is being enabled below.
// In the future we should get rid of this. See also https://docs.microsoft.com/en-us/previous-versions/hf4y5e3w(v=vs.140)?redirectedfrom=MSDN
_set_printf_count_output(1);
#endif
bool dedicated = false;