1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-09-03 01:21:16 +03:00

replace Windows CRLF with Unix newline

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf
2015-03-23 16:38:15 +01:00
parent a36f756be3
commit ec9d5413a8
6 changed files with 1336 additions and 1336 deletions

View File

@@ -1510,25 +1510,25 @@ static int MakeConsole() {
if (!ok) {
if (!AttachConsole(ATTACH_PARENT_PROCESS)) {
FreeConsole();
if (!AllocConsole()) {
err = GetLastError();
if (err==ERROR_ACCESS_DENIED) {
MessageBox(NULL, "Insufficient rights to create a console window", "Error", MB_ICONERROR);
}
}
AttachConsole(GetCurrentProcessId());
}
if (!AllocConsole()) {
err = GetLastError();
if (err==ERROR_ACCESS_DENIED) {
MessageBox(NULL, "Insufficient rights to create a console window", "Error", MB_ICONERROR);
}
}
AttachConsole(GetCurrentProcessId());
}
ok = (GetConsoleWindow() != NULL);
if (ok) {
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
}
}
if (ok) {
SetConsoleTitle(server_name);
if (ok) {
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
}
}
if (ok) {
SetConsoleTitle(server_name);
}
return ok;