[CONSRV]: Code reorganization part 2 (add some comments for future fixes).

svn path=/branches/condrv_restructure/; revision=64043
This commit is contained in:
Hermès Bélusca-Maïto
2014-09-05 21:08:15 +00:00
parent f03589f92e
commit f7ed0f0444
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ ConSrvCloseHandle(IN PCONSOLE_IO_HANDLE Handle)
* even of the last buffer, but having to deal with a lack of
* any active buffer might be error-prone. */
if (Buffer->ListEntry.Flink != Buffer->ListEntry.Blink)
ConioDeleteScreenBuffer(Buffer);
ConDrvDeleteScreenBuffer(Buffer);
}
else if (Object->Type == INPUT_BUFFER)
{
+6 -1
View File
@@ -191,7 +191,7 @@ typedef struct _CONSOLE_INPUT_BUFFER
{
CONSOLE_IO_OBJECT Header; /* Object header - MUST BE IN FIRST PLACE */
ULONG InputBufferSize; /* Size of this input buffer */
ULONG InputBufferSize; /* Size of this input buffer -- UNUSED!! */
LIST_ENTRY InputEvents; /* List head for input event queue */
HANDLE ActiveEvent; /* Event set when an input event is added in its queue */
@@ -344,6 +344,11 @@ NTSTATUS
ConSrvConsoleCtrlEvent(IN ULONG CtrlEvent,
IN PCONSOLE_PROCESS_DATA ProcessData);
#define GetConsoleInputBufferMode(Console) \
(Console)->InputBuffer.Mode
/* conoutput.c */
PCHAR_INFO ConioCoordToPointer(PTEXTMODE_SCREEN_BUFFER Buff, ULONG X, ULONG Y);
VOID ConioDrawConsole(PCONSOLE /*PCONSRV_CONSOLE*/ Console);
@@ -62,6 +62,9 @@ typedef struct _CONSOLE_INFO
/*
* Structure used to communicate with console.dll
*
* FIXME: It should overlap with the Windows' CONSOLE_STATE_INFO structure
* for GUI terminals!!
*/
typedef struct _CONSOLE_PROPS
{
+1 -1
View File
@@ -404,7 +404,7 @@ ConSrvGetDefaultSettings(IN OUT PCONSOLE_INFO ConsoleInfo,
ConsoleInfo->QuickEdit = FALSE;
ConsoleInfo->InsertMode = TRUE;
// ConsoleInfo->InputBufferSize;
// ConsoleInfo->InputBufferSize = 0;
// Rule: ScreenBufferSize >= ConsoleSize
ConsoleInfo->ScreenBufferSize.X = 80;