Replace null bytes by spaces in WriteConsoleOutputA call.

This commit is contained in:
Andreas Mohr 2000-10-12 20:41:29 +00:00 committed by Alexandre Julliard
parent aa7971ba24
commit 744134e41d
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ void CALLBACK VGA_Poll( ULONG_PTR arg )
dest.Top=Y; dest.Bottom=Y;
for (X=0; X<Width; X++) {
ch[X].Char.AsciiChar = *dat++;
/* WriteConsoleOutputA doesn't like "dead" chars */
if (ch[X].Char.AsciiChar == '\0')
ch[X].Char.AsciiChar = ' ';
ch[X].Attributes = *dat++;
}
dest.Left=0; dest.Right=Width+1;