Author: khornicek
Date: Thu Feb 16 00:52:20 2012
New Revision: 55621
URL:
http://svn.reactos.org/svn/reactos?rev=55621&view=rev
Log:
[ROSAUTOTEST]
Some bug fixing.
Modified:
trunk/rostests/rosautotest/tools.cpp
Modified: trunk/rostests/rosautotest/tools.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/rosautotest/tools.cpp?rev…
==============================================================================
--- trunk/rostests/rosautotest/tools.cpp [iso-8859-1] (original)
+++ trunk/rostests/rosautotest/tools.cpp [iso-8859-1] Thu Feb 16 00:52:20 2012
@@ -119,10 +119,10 @@
/* Try to print whole lines but obey the 512 bytes chunk size limit*/
if(NewString[curr_pos - 1] == '\n' || (curr_pos - start) ==
DBGPRINT_BUFSIZE)
{
- if((curr_pos - start) > DBGPRINT_BUFSIZE || NewString[curr_pos - 1] !=
'\n')
+ if((curr_pos - start) >= DBGPRINT_BUFSIZE)
{
- /* No newlines, print what we have and start over*/
- if(NewString[curr_pos - 1] != '\n')
+ /* No newlines so far, or the string just fits */
+ if(last_newline <= start || (curr_pos - start) == DBGPRINT_BUFSIZE)
{
size = curr_pos - start;
memcpy(DbgString, NewString.c_str() + start, size);