mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 01:23:45 +00:00
[FORMATTING] Standardize win32csr to 4-space indents. Based on a patch by Adam Kachwalla [Bug 5380]. No code changes.
svn path=/trunk/; revision=47457
This commit is contained in:
parent
dfc4dcb9b5
commit
d27f068a19
10 changed files with 3838 additions and 3837 deletions
|
@ -20,7 +20,7 @@ typedef struct tagALIAS_ENTRY
|
|||
LPCWSTR lpSource;
|
||||
LPCWSTR lpTarget;
|
||||
struct tagALIAS_ENTRY * Next;
|
||||
}ALIAS_ENTRY, *PALIAS_ENTRY;
|
||||
} ALIAS_ENTRY, *PALIAS_ENTRY;
|
||||
|
||||
|
||||
typedef struct tagALIAS_HEADER
|
||||
|
@ -29,7 +29,7 @@ typedef struct tagALIAS_HEADER
|
|||
PALIAS_ENTRY Data;
|
||||
struct tagALIAS_HEADER * Next;
|
||||
|
||||
}ALIAS_HEADER, *PALIAS_HEADER;
|
||||
} ALIAS_HEADER, *PALIAS_HEADER;
|
||||
|
||||
/* Ensure that a buffer is contained within the process's shared memory section. */
|
||||
static BOOL
|
||||
|
|
|
@ -19,7 +19,7 @@ typedef struct APPSWITCH_ITEM
|
|||
BOOL bFocus;
|
||||
struct APPSWITCH_ITEM * Next;
|
||||
WCHAR szText[1];
|
||||
}APPSWITCH_ITEM, *PAPPSWITCH_ITEM;
|
||||
} APPSWITCH_ITEM, *PAPPSWITCH_ITEM;
|
||||
|
||||
static PAPPSWITCH_ITEM pRoot = NULL;
|
||||
static DWORD NumOfWindows = 0;
|
||||
|
|
|
@ -605,7 +605,8 @@ CSR_API(CsrReadConsole)
|
|||
i -= 2; /* if we already have something to return, just back it up by 2 */
|
||||
}
|
||||
else
|
||||
{ /* otherwise, return STATUS_NOTIFY_CLEANUP to tell client to back up its buffer */
|
||||
{
|
||||
/* otherwise, return STATUS_NOTIFY_CLEANUP to tell client to back up its buffer */
|
||||
Console->WaitingChars--;
|
||||
ConioUnlockConsole(Console);
|
||||
HeapFree(Win32CsrApiHeap, 0, Input);
|
||||
|
@ -2030,7 +2031,7 @@ CSR_API(CsrCreateScreenBuffer)
|
|||
}
|
||||
|
||||
Status = CsrInitConsoleScreenBuffer(Console, Buff);
|
||||
if(NT_SUCCESS(Status))
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
Status = Win32CsrInsertObject(ProcessData,
|
||||
&Request->Data.CreateScreenBufferRequest.OutputHandle,
|
||||
|
@ -3035,12 +3036,12 @@ CSR_API(CsrGetProcessList)
|
|||
return Status;
|
||||
}
|
||||
|
||||
for(current_entry = Console->ProcessList.Flink;
|
||||
for (current_entry = Console->ProcessList.Flink;
|
||||
current_entry != &Console->ProcessList;
|
||||
current_entry = current_entry->Flink)
|
||||
{
|
||||
current = CONTAINING_RECORD(current_entry, CSRSS_PROCESS_DATA, ProcessEntry);
|
||||
if(++nItems <= Request->Data.GetProcessListRequest.nMaxIds)
|
||||
if (++nItems <= Request->Data.GetProcessListRequest.nMaxIds)
|
||||
{
|
||||
*Buffer++ = (DWORD)current->ProcessId;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ HINSTANCE Win32CsrDllHandle = NULL;
|
|||
static CSRSS_EXPORTED_FUNCS CsrExports;
|
||||
|
||||
static CSRSS_API_DEFINITION Win32CsrApiDefinitions[] =
|
||||
{
|
||||
{
|
||||
CSRSS_DEFINE_API(GET_INPUT_HANDLE, CsrGetHandle),
|
||||
CSRSS_DEFINE_API(GET_OUTPUT_HANDLE, CsrGetHandle),
|
||||
CSRSS_DEFINE_API(CLOSE_HANDLE, CsrCloseHandle),
|
||||
|
@ -83,7 +83,7 @@ static CSRSS_API_DEFINITION Win32CsrApiDefinitions[] =
|
|||
CSRSS_DEFINE_API(SET_SCREEN_BUFFER_SIZE, CsrSetScreenBufferSize),
|
||||
CSRSS_DEFINE_API(GET_CONSOLE_SELECTION_INFO, CsrGetConsoleSelectionInfo),
|
||||
{ 0, 0, NULL }
|
||||
};
|
||||
};
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
@ -126,7 +126,7 @@ Win32CsrInitialization(PCSRSS_API_DEFINITION *ApiDefinitions,
|
|||
CsrExports = *Exports;
|
||||
Win32CsrApiHeap = CsrssApiHeap;
|
||||
|
||||
Status = NtUserInitialize(0 ,NULL, NULL);
|
||||
Status = NtUserInitialize(0, NULL, NULL);
|
||||
|
||||
PrivateCsrssManualGuiCheck(0);
|
||||
CsrInitConsoleSupport();
|
||||
|
|
|
@ -165,7 +165,7 @@ GuiConsoleAppendMenuItems(HMENU hMenu,
|
|||
NULL);
|
||||
}
|
||||
i++;
|
||||
}while(!(Items[i].uID == 0 && Items[i].SubMenu == NULL && Items[i].wCmdID == 0));
|
||||
} while(!(Items[i].uID == 0 && Items[i].SubMenu == NULL && Items[i].wCmdID == 0));
|
||||
}
|
||||
|
||||
static VOID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue