do not use console in silent mode. Closes #48

This commit is contained in:
oy 2010-10-13 12:54:27 +02:00
parent e4fe7457c8
commit 8fb39524a9

View file

@ -2001,7 +2001,7 @@ int main(int argc, const char **argv) // ignore_convention
{ {
if(str_comp("-s", argv[i]) == 0 || str_comp("--silent", argv[i]) == 0) // ignore_convention if(str_comp("-s", argv[i]) == 0 || str_comp("--silent", argv[i]) == 0) // ignore_convention
{ {
ShowWindow(GetConsoleWindow(), SW_HIDE); FreeConsole();
break; break;
} }
} }