diff --git a/reactos/lib/kernel32/misc/console.c b/reactos/lib/kernel32/misc/console.c index d6ce4445a07..8954a301f71 100644 --- a/reactos/lib/kernel32/misc/console.c +++ b/reactos/lib/kernel32/misc/console.c @@ -1,4 +1,4 @@ -/* $Id: console.c,v 1.27 2001/01/24 05:10:38 phreak Exp $ +/* $Id: console.c,v 1.28 2001/01/25 05:37:03 phreak Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -685,7 +685,7 @@ WriteConsoleOutputCharacterA( Request = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, - sizeof(CSRSS_API_REQUEST) + CSRSS_MAX_WRITE_CONSOLE_OUTPUT_CHAR); + sizeof(CSRSS_WRITE_CONSOLE_OUTPUT_CHAR_REQUEST) + CSRSS_MAX_WRITE_CONSOLE_OUTPUT_CHAR); if( !Request ) { SetLastError( ERROR_OUTOFMEMORY ); @@ -703,7 +703,7 @@ WriteConsoleOutputCharacterA( memcpy( &Request->Data.WriteConsoleOutputCharRequest.String[0], lpCharacter, Size ); - Status = CsrClientCallServer( Request, &Reply, sizeof( CSRSS_API_REQUEST ), sizeof( CSRSS_API_REPLY ) ); + Status = CsrClientCallServer( Request, &Reply, sizeof( CSRSS_WRITE_CONSOLE_OUTPUT_CHAR_REQUEST ) + Size, sizeof( CSRSS_API_REPLY ) ); if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) ) { SetLastErrorByStatus ( Status ); @@ -758,7 +758,7 @@ WriteConsoleOutputAttribute( Request = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, - sizeof(CSRSS_API_REQUEST) + CSRSS_MAX_WRITE_CONSOLE_OUTPUT_ATTRIB); + sizeof(CSRSS_WRITE_CONSOLE_OUTPUT_ATTRIB_REQUEST) + CSRSS_MAX_WRITE_CONSOLE_OUTPUT_ATTRIB); if( !Request ) { SetLastError( ERROR_OUTOFMEMORY ); @@ -776,7 +776,7 @@ WriteConsoleOutputAttribute( memcpy( &Request->Data.WriteConsoleOutputAttribRequest.String[0], lpAttribute, Size * 2 ); - Status = CsrClientCallServer( Request, &Reply, sizeof( CSRSS_API_REQUEST ), sizeof( CSRSS_API_REPLY ) ); + Status = CsrClientCallServer( Request, &Reply, sizeof( CSRSS_WRITE_CONSOLE_OUTPUT_ATTRIB_REQUEST ) + (Size * 2), sizeof( CSRSS_API_REPLY ) ); if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) ) { SetLastErrorByStatus ( Status );