[CONSRV]: Fix erroneous X-offset when copying text lines.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 10 Jun 2014 19:49:22 +0000 (19:49 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 10 Jun 2014 19:49:22 +0000 (19:49 +0000)
svn path=/trunk/; revision=63586

reactos/win32ss/user/winsrv/consrv/frontends/gui/text.c

index b3caf59..078cb40 100644 (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);
 
         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++)
 
         /* Copy only the characters, leave attributes alone */
         for (xPos = xBeg; (xPos <= xEnd) && (NumChars-- > 0); xPos++)