Author: rmessiant
Date: Thu Dec 8 21:23:17 2011
New Revision: 54621
URL:
http://svn.reactos.org/svn/reactos?rev=54621&view=rev
Log:
[SYSSETUP]
- When writing a newline, write just a newline. Prevents garbage in setuplog.txt. CID
14128.
Modified:
trunk/reactos/dll/win32/syssetup/logfile.c
Modified: trunk/reactos/dll/win32/syssetup/logfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/logfile…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/logfile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/logfile.c [iso-8859-1] Thu Dec 8 21:23:17 2011
@@ -91,7 +91,6 @@
IN DWORD dwSeverity,
IN LPWSTR lpMessageText)
{
- const LPCSTR lpNewLine = "\r\n";
LPCSTR lpSeverityString;
LPSTR lpMessageString;
DWORD dwMessageLength;
@@ -185,11 +184,7 @@
NULL);
/* Write newline */
- WriteFile(hLogFile,
- lpNewLine,
- sizeof(lpNewLine),
- &dwWritten,
- NULL);
+ WriteFile(hLogFile, "\r\n", 2, &dwWritten, NULL);
HeapFree(GetProcessHeap(),
0,