mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 15:05:54 +00:00
[ROSAUTOTEST]
Some bug fixing. svn path=/trunk/; revision=55621
This commit is contained in:
parent
891ac6118d
commit
a7b1c97a33
1 changed files with 3 additions and 3 deletions
|
@ -119,10 +119,10 @@ StringOut(const string& String)
|
|||
/* 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue