[CONSRV]: Fix erroneous X-offset when copying text lines.

svn path=/trunk/; revision=63586
This commit is contained in:
Hermès Bélusca-Maïto 2014-06-10 19:49:22 +00:00
parent 01a82ca2fc
commit 9d7a2a09db

View file

@ -203,7 +203,7 @@ CopyLines(PTEXTMODE_SCREEN_BUFFER Buffer,
xBeg = (yPos == Begin->Y ? Begin->X : 0);
xEnd = (yPos == End->Y ? End->X : Buffer->ScreenBufferSize.X - 1);
ptr = ConioCoordToPointer(Buffer, xBeg, yPos);
ptr = ConioCoordToPointer(Buffer, 0, yPos);
/* Copy only the characters, leave attributes alone */
for (xPos = xBeg; (xPos <= xEnd) && (NumChars-- > 0); xPos++)