mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
A few more console fixes
svn path=/trunk/; revision=1566
This commit is contained in:
parent
a6a0f5ae18
commit
74e0c4a781
1 changed files with 5 additions and 5 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue