When sending multi-line boxes to console throgh WineConsoleOutputA,
only the first line was being translated into wide-chars.
This commit is contained in:
parent
cf8b29f7e0
commit
55559aa3f7
|
@ -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],
|
memcpy( &ciw[y * new_size.X], &lpBuffer[(y + coord.Y) * size.X + coord.X],
|
||||||
new_size.X * sizeof(CHAR_INFO) );
|
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;
|
new_coord.X = new_coord.Y = 0;
|
||||||
ret = WriteConsoleOutputW( hConsoleOutput, ciw, new_size, new_coord, region );
|
ret = WriteConsoleOutputW( hConsoleOutput, ciw, new_size, new_coord, region );
|
||||||
|
|
Loading…
Reference in New Issue