Changeset - r14663:60d42e2f38ef
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-02-25 18:26:55
rubidium@openttd.org
(svn r19252) -Fix [FS#3639]: writing (console) output to a file failed on Windows if the date would not be logged.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -50,7 +50,7 @@ static void IConsoleWriteToLogFile(const
 
	if (_iconsole_output_file != NULL) {
 
		/* if there is an console output file ... also print it there */
 
		const char *header = GetLogPrefix();
 
		if (fwrite(header, strlen(header), 1, _iconsole_output_file) != 1 ||
 
		if ((strlen(header) != 0 && fwrite(header, strlen(header), 1, _iconsole_output_file) != 1) ||
 
				fwrite(string, strlen(string), 1, _iconsole_output_file) != 1 ||
 
				fwrite("\n", 1, 1, _iconsole_output_file) != 1) {
 
			fclose(_iconsole_output_file);
0 comments (0 inline, 0 general)