mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed bug in lib/kernel32/misc/console.c
svn path=/trunk/; revision=216
This commit is contained in:
parent
e5dfcc9871
commit
02e70516ef
1 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ GetStdHandle(
|
||||||
if ( nStdHandle == STD_PRINT_HANDLE )
|
if ( nStdHandle == STD_PRINT_HANDLE )
|
||||||
return StdError;
|
return StdError;
|
||||||
*/
|
*/
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ ReadConsoleA(
|
||||||
Overlapped.InternalHigh = 0;
|
Overlapped.InternalHigh = 0;
|
||||||
Overlapped.Offset = 0;
|
Overlapped.Offset = 0;
|
||||||
Overlapped.OffsetHigh = 0;
|
Overlapped.OffsetHigh = 0;
|
||||||
// Overlapped.hEvent = CreateEvent(NULL,FALSE,TRUE,NULL);
|
// Overlapped.hEvent = CreateEvent(NULL,FALSE,TRUE,NULL);
|
||||||
lpOverlapped = &Overlapped;
|
lpOverlapped = &Overlapped;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -105,7 +105,7 @@ ReadConsoleA(
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(),0,k);
|
HeapFree(GetProcessHeap(),0,k);
|
||||||
//if ( lpReserved == NULL ) {
|
//if ( lpReserved == NULL ) {
|
||||||
// CloseHandle(Overlapped.hEvent);
|
// CloseHandle(Overlapped.hEvent);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
AllocConsole( VOID )
|
AllocConsole( VOID )
|
||||||
{
|
{
|
||||||
StdInput = CreateFile("\\Device\\Keyboard",
|
StdInput = CreateFile("\\Keyboard",
|
||||||
FILE_GENERIC_READ,
|
FILE_GENERIC_READ,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -122,7 +122,7 @@ AllocConsole( VOID )
|
||||||
FILE_FLAG_OVERLAPPED,
|
FILE_FLAG_OVERLAPPED,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
StdOutput = CreateFile("\\Device\\BlueScreen",
|
StdOutput = CreateFile("\\BlueScreen",
|
||||||
FILE_GENERIC_WRITE|FILE_GENERIC_READ,
|
FILE_GENERIC_WRITE|FILE_GENERIC_READ,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Reference in a new issue