When sending multi-line boxes to console throgh WineConsoleOutputA,

only the first line was being translated into wide-chars.
This commit is contained in:
Gabriel Buades Rubio 2005-03-09 11:44:33 +00:00 committed by Alexandre Julliard
parent cf8b29f7e0
commit 55559aa3f7
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ BOOL WINAPI WriteConsoleOutputA( HANDLE hConsoleOutput, const CHAR_INFO *lpBuffe
{
memcpy( &ciw[y * new_size.X], &lpBuffer[(y + coord.Y) * size.X + coord.X],
new_size.X * sizeof(CHAR_INFO) );
char_info_AtoW( ciw, new_size.X );
char_info_AtoW( &ciw[ y * new_size.X ], new_size.X );
}
new_coord.X = new_coord.Y = 0;
ret = WriteConsoleOutputW( hConsoleOutput, ciw, new_size, new_coord, region );