mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CONSRV]
Add extra parentheses in macros arguments usage. svn path=/branches/ros-csrss/; revision=58198
This commit is contained in:
parent
c01d4cbb85
commit
40ee602754
2 changed files with 6 additions and 5 deletions
|
@ -162,11 +162,11 @@ typedef struct _CONSOLE_VTBL
|
|||
#define ConioSetScreenInfo(Console, Buff, OldCursorX, OldCursorY) \
|
||||
(Console)->Vtbl->SetScreenInfo((Console), (Buff), (OldCursorX), (OldCursorY))
|
||||
#define ConioUpdateScreenInfo(Console, Buff) \
|
||||
(Console)->Vtbl->UpdateScreenInfo(Console, Buff)
|
||||
(Console)->Vtbl->UpdateScreenInfo((Console), (Buff))
|
||||
#define ConioChangeTitle(Console) (Console)->Vtbl->ChangeTitle(Console)
|
||||
#define ConioCleanupConsole(Console) (Console)->Vtbl->CleanupConsole(Console)
|
||||
#define ConioChangeIcon(Console, hWindowIcon) (Console)->Vtbl->ChangeIcon(Console, hWindowIcon)
|
||||
#define ConioResizeBuffer(Console, Buff, Size) (Console)->Vtbl->ResizeBuffer(Console, Buff, Size)
|
||||
#define ConioChangeIcon(Console, hWindowIcon) (Console)->Vtbl->ChangeIcon((Console), (hWindowIcon))
|
||||
#define ConioResizeBuffer(Console, Buff, Size) (Console)->Vtbl->ResizeBuffer((Console), (Buff), (Size))
|
||||
|
||||
/* console.c */
|
||||
#define ConioLockConsole(ProcessData, Console) \
|
||||
|
|
|
@ -98,6 +98,7 @@ CsrInitConsole(PCONSOLE* NewConsole, int ShowCmd, PCSR_PROCESS ConsoleLeaderProc
|
|||
RtlCreateUnicodeString(&Console->Title, L"Command Prompt");
|
||||
}
|
||||
|
||||
InitializeCriticalSection(&Console->Lock);
|
||||
Console->ReferenceCount = 0;
|
||||
Console->LineBuffer = NULL;
|
||||
Console->ConsoleLeaderCID = ConsoleLeaderProcess->ClientId;
|
||||
|
@ -116,6 +117,7 @@ CsrInitConsole(PCONSOLE* NewConsole, int ShowCmd, PCSR_PROCESS ConsoleLeaderProc
|
|||
InitializeListHead(&Console->HistoryBuffers);
|
||||
Console->CodePage = GetOEMCP();
|
||||
Console->OutputCodePage = GetOEMCP();
|
||||
Console->GuiData = NULL;
|
||||
|
||||
SecurityAttributes.nLength = sizeof(SECURITY_ATTRIBUTES);
|
||||
SecurityAttributes.lpSecurityDescriptor = NULL;
|
||||
|
@ -125,11 +127,10 @@ CsrInitConsole(PCONSOLE* NewConsole, int ShowCmd, PCSR_PROCESS ConsoleLeaderProc
|
|||
if (NULL == Console->InputBuffer.ActiveEvent)
|
||||
{
|
||||
RtlFreeUnicodeString(&Console->Title);
|
||||
DeleteCriticalSection(&Console->Lock);
|
||||
RtlFreeHeap(ConSrvHeap, 0, Console);
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
Console->GuiData = NULL;
|
||||
InitializeCriticalSection(&Console->Lock);
|
||||
|
||||
GuiMode = DtbgIsDesktopVisible();
|
||||
|
||||
|
|
Loading…
Reference in a new issue