STABLE14-windows-init-log-eol-20060830

change EOL to CR-LF for afsd_init.log


(cherry picked from commit 48471c805ee43192e3d3adf1ffac995c16257903)
This commit is contained in:
Jeffrey Altman 2006-08-30 21:10:39 +00:00
parent 30c3d4a4f7
commit 82fb20bf7b

View File

@ -114,7 +114,7 @@ afsi_log(char *pattern, ...)
if ( afsi_log_useTimestamp ) { if ( afsi_log_useTimestamp ) {
GetTimeFormat(LOCALE_SYSTEM_DEFAULT, 0, NULL, NULL, t, sizeof(t)); GetTimeFormat(LOCALE_SYSTEM_DEFAULT, 0, NULL, NULL, t, sizeof(t));
GetDateFormat(LOCALE_SYSTEM_DEFAULT, 0, NULL, NULL, d, sizeof(d)); GetDateFormat(LOCALE_SYSTEM_DEFAULT, 0, NULL, NULL, d, sizeof(d));
StringCbPrintfA(u, sizeof(u), "%s %s: %s\n", d, t, s); StringCbPrintfA(u, sizeof(u), "%s %s: %s\r\n", d, t, s);
if (afsi_file != INVALID_HANDLE_VALUE) if (afsi_file != INVALID_HANDLE_VALUE)
WriteFile(afsi_file, u, strlen(u), &zilch, NULL); WriteFile(afsi_file, u, strlen(u), &zilch, NULL);
#ifdef NOTSERVICE #ifdef NOTSERVICE