Commit 744134e4 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Replace null bytes by spaces in WriteConsoleOutputA call.

parent aa7971ba
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment