mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
Revert a part of r38087. OutputDebugStringA doesn't add a newline automatically.
Verified by MSVC's debug output and kinda proofed by http://www.unixwiz.net/techtips/outputdebugstring.html (nobody would write a function for adding newlines to the debug output if that would be done automatically) Thanks to Gregor for the hints. svn path=/trunk/; revision=38583
This commit is contained in:
parent
d8a7ac50bd
commit
55add6464c
1 changed files with 0 additions and 12 deletions
|
@ -376,18 +376,6 @@ OutputDebugStringA(LPCSTR _OutputString)
|
|||
/* copy the current block */
|
||||
memcpy(a_cBuffer, _OutputString, nRoundLen);
|
||||
|
||||
/* Have we reached the end of the string? */
|
||||
if (nRoundLen == nOutputStringLen)
|
||||
{
|
||||
/* Make sure we terminate with a line break */
|
||||
if (a_cBuffer[nRoundLen - 1] != '\n')
|
||||
{
|
||||
a_cBuffer[nRoundLen] = '\n';
|
||||
nRoundLen++;
|
||||
nOutputStringLen++;
|
||||
}
|
||||
}
|
||||
|
||||
/* null-terminate the current block */
|
||||
a_cBuffer[nRoundLen] = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue