From 55add6464c648fb490ebce11f10b0d5a56c08377 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Mon, 5 Jan 2009 13:22:27 +0000 Subject: [PATCH] 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 --- reactos/dll/win32/kernel32/debug/output.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/reactos/dll/win32/kernel32/debug/output.c b/reactos/dll/win32/kernel32/debug/output.c index 66cfe6a1215..79d16e2772e 100644 --- a/reactos/dll/win32/kernel32/debug/output.c +++ b/reactos/dll/win32/kernel32/debug/output.c @@ -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; -- 2.17.1