\t processing in SCREEN_BUFFER bugged.
authorEmanuele Aliberti <ea@iol.it>
Tue, 31 Jul 2001 20:47:44 +0000 (20:47 +0000)
committerEmanuele Aliberti <ea@iol.it>
Tue, 31 Jul 2001 20:47:44 +0000 (20:47 +0000)
Partial fix.

svn path=/trunk/; revision=2128

reactos/subsys/csrss/api/conio.c

index be54212..8095afd 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: conio.c,v 1.21 2001/07/31 20:28:43 ea Exp $
+/* $Id: conio.c,v 1.22 2001/07/31 20:47:44 ea Exp $
  *
  * reactos/subsys/csrss/api/conio.c
  *
@@ -293,7 +293,7 @@ NTSTATUS CsrpWriteConsole( PCSRSS_SCREEN_BUFFER Buff, CHAR *Buffer, DWORD Length
              break;
            /* --- TAB --- */
            case '\t':
-             CsrpWriteConsole(Buff, "        ", 8, Attrib);
+             CsrpWriteConsole(Buff, "        ", (8 - (Buff->CurrentX % 8)), Attrib);
              break;
            /* --- */
            default: