Commit in reactos/lib/kernel32/misc on MAIN
console.c+2-21.80 -> 1.81
- Fixed the length calculation in WriteConsoleOutputAttribute.

reactos/lib/kernel32/misc
console.c 1.80 -> 1.81
diff -u -r1.80 -r1.81
--- console.c	10 Sep 2004 22:14:52 -0000	1.80
+++ console.c	14 Sep 2004 22:30:56 -0000	1.81
@@ -1,4 +1,4 @@
-/* $Id: console.c,v 1.80 2004/09/10 22:14:52 gvg Exp $
+/* $Id: console.c,v 1.81 2004/09/14 22:30:56 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -2237,7 +2237,7 @@
       {
 	 Size = nLength > CSRSS_MAX_WRITE_CONSOLE_OUTPUT_ATTRIB ? CSRSS_MAX_WRITE_CONSOLE_OUTPUT_ATTRIB : nLength;
 	 Request->Data.WriteConsoleOutputAttribRequest.Length = Size;
-	 for( c = 0; c < ( Size * 2 ); c++ )
+	 for( c = 0; c < Size; c++ )
 	   Request->Data.WriteConsoleOutputAttribRequest.String[c] = (char)lpAttribute[c];
 	 Status = CsrClientCallServer( Request, &Reply, sizeof( CSRSS_API_REQUEST ) + (Size * 2), sizeof( CSRSS_API_REPLY ) );
 	 if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) )
CVSspam 0.2.8