[CONSRV] Rephrase/complete some comments.

This commit is contained in:
Hermès Bélusca-Maïto 2020-02-09 00:18:40 +01:00
parent b4e40f21c3
commit 07f8b9fe09
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 7 additions and 5 deletions

View file

@ -71,7 +71,7 @@ GRAPHICS_BUFFER_Initialize(OUT PCONSOLE_SCREEN_BUFFER* Buffer,
*/
NewBuffer->ClientProcess = ProcessHandle;
/* Get infos from the graphics buffer information structure */
/* Get information from the graphics buffer information structure */
NewBuffer->BitMapInfoLength = GraphicsInfo->Info.dwBitMapInfoLength;
NewBuffer->BitMapInfo = ConsoleAllocHeap(HEAP_ZERO_MEMORY, NewBuffer->BitMapInfoLength);

View file

@ -236,10 +236,10 @@ CSR_API(SrvCreateConsoleScreenBuffer)
*/
/*
* This is Windows' behaviour
* This is Windows behaviour.
*/
/* Use the current console size. Regularize it if needed. */
/* Use the current console size. Normalize it if needed */
TextModeInfo.ScreenBufferSize = Console->ConsoleSize;
if (TextModeInfo.ScreenBufferSize.X == 0) TextModeInfo.ScreenBufferSize.X = 1;
if (TextModeInfo.ScreenBufferSize.Y == 0) TextModeInfo.ScreenBufferSize.Y = 1;
@ -258,7 +258,7 @@ CSR_API(SrvCreateConsoleScreenBuffer)
}
else if (CreateScreenBufferRequest->ScreenBufferType == CONSOLE_GRAPHICS_BUFFER)
{
/* Get infos from the graphics buffer information structure */
/* Get information from the graphics buffer information structure */
if (!CsrValidateMessageBuffer(ApiMessage,
(PVOID*)&CreateScreenBufferRequest->GraphicsBufferInfo.lpBitMapInfo,
CreateScreenBufferRequest->GraphicsBufferInfo.dwBitMapInfoLength,

View file

@ -1200,6 +1200,7 @@ CSR_API(SrvSetConsoleMode)
{
#define CONSOLE_VALID_CONTROL_MODES ( ENABLE_EXTENDED_FLAGS | \
ENABLE_INSERT_MODE | ENABLE_QUICK_EDIT_MODE )
// NOTE: Vista+ ENABLE_AUTO_POSITION is also a control mode.
NTSTATUS Status;
PCONSOLE_GETSETCONSOLEMODE ConsoleModeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.ConsoleModeRequest;

View file

@ -1255,6 +1255,7 @@ OnTimer(PGUI_CONSOLE_DATA GuiData)
if (GetType(Buff) == TEXTMODE_BUFFER)
{
/* Repaint the caret */
InvalidateCell(GuiData, Buff->CursorPosition.X, Buff->CursorPosition.Y);
Buff->CursorBlinkOn = !Buff->CursorBlinkOn;

View file

@ -1238,7 +1238,7 @@ GuiLoadFrontEnd(IN OUT PFRONTEND FrontEnd,
if ((ConsoleStartInfo->dwStartupFlags & STARTF_TITLEISLINKNAME) == 0)
{
#if 0
/* Load the terminal infos from the registry */
/* Load the terminal information from the registry */
GuiConsoleReadUserSettings(&GuiInitInfo->TermInfo);
#endif