mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:22:58 +00:00
[FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces
This commit is contained in:
parent
4b4ffa92f5
commit
34593d933b
952 changed files with 12942 additions and 12942 deletions
|
@ -45,19 +45,19 @@ PsaEnumerateProcessModules(IN HANDLE ProcessHandle,
|
|||
#endif
|
||||
ListHead = &(NtCurrentPeb()->Ldr->InLoadOrderModuleList);
|
||||
Current = ListHead->Flink;
|
||||
|
||||
|
||||
while(Current != ListHead)
|
||||
{
|
||||
PLDR_DATA_TABLE_ENTRY LoaderModule = CONTAINING_RECORD(Current, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks);
|
||||
|
||||
|
||||
/* return the current module to the callback */
|
||||
Status = Callback(ProcessHandle, LoaderModule, CallbackContext);
|
||||
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
goto Failure;
|
||||
}
|
||||
|
||||
|
||||
Current = LoaderModule->InLoadOrderLinks.Flink;
|
||||
}
|
||||
#if 0
|
||||
|
@ -74,43 +74,43 @@ PsaEnumerateProcessModules(IN HANDLE ProcessHandle,
|
|||
PPEB_LDR_DATA LoaderData;
|
||||
LDR_DATA_TABLE_ENTRY LoaderModule;
|
||||
PLIST_ENTRY ListHead, Current;
|
||||
|
||||
|
||||
/* query the process basic information (includes the PEB address) */
|
||||
Status = NtQueryInformationProcess(ProcessHandle,
|
||||
ProcessBasicInformation,
|
||||
&BasicInformation,
|
||||
sizeof(BasicInformation),
|
||||
NULL);
|
||||
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT(FAILED_WITH_STATUS, "NtQueryInformationProcess", Status);
|
||||
goto Failure;
|
||||
}
|
||||
|
||||
|
||||
/* get the address of the PE Loader data */
|
||||
Status = NtReadVirtualMemory(ProcessHandle,
|
||||
&(BasicInformation.PebBaseAddress->Ldr),
|
||||
&LoaderData,
|
||||
sizeof(LoaderData),
|
||||
NULL);
|
||||
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT(FAILED_WITH_STATUS, "NtReadVirtualMemory", Status);
|
||||
goto Failure;
|
||||
}
|
||||
|
||||
|
||||
/* head of the module list: the last element in the list will point to this */
|
||||
ListHead = &LoaderData->InLoadOrderModuleList;
|
||||
|
||||
|
||||
/* get the address of the first element in the list */
|
||||
Status = NtReadVirtualMemory(ProcessHandle,
|
||||
&(LoaderData->InLoadOrderModuleList.Flink),
|
||||
&Current,
|
||||
sizeof(Current),
|
||||
NULL);
|
||||
|
||||
|
||||
while(Current != ListHead)
|
||||
{
|
||||
/* read the current module */
|
||||
|
@ -119,7 +119,7 @@ PsaEnumerateProcessModules(IN HANDLE ProcessHandle,
|
|||
&LoaderModule,
|
||||
sizeof(LoaderModule),
|
||||
NULL);
|
||||
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT(FAILED_WITH_STATUS, "NtReadVirtualMemory", Status);
|
||||
|
@ -128,12 +128,12 @@ PsaEnumerateProcessModules(IN HANDLE ProcessHandle,
|
|||
|
||||
/* return the current module to the callback */
|
||||
Status = Callback(ProcessHandle, &LoaderModule, CallbackContext);
|
||||
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
goto Failure;
|
||||
}
|
||||
|
||||
|
||||
/* address of the next module in the list */
|
||||
Current = LoaderModule.InLoadOrderLinks.Flink;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue