Author: cwittich Date: Sat Dec 8 21:42:10 2007 New Revision: 31089
URL: http://svn.reactos.org/svn/reactos?rev=31089&view=rev Log: -UniqueProcessId is ULONG_PTR not ULONG -some formatting fixes
Modified: trunk/reactos/ntoskrnl/ps/query.c
Modified: trunk/reactos/ntoskrnl/ps/query.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/query.c?rev=310... ============================================================================== --- trunk/reactos/ntoskrnl/ps/query.c (original) +++ trunk/reactos/ntoskrnl/ps/query.c Sat Dec 8 21:42:10 2007 @@ -120,11 +120,11 @@ /* Set return length */ Length = sizeof(PROCESS_BASIC_INFORMATION);
- if ( ProcessInformationLength != Length ) - { - Status = STATUS_INFO_LENGTH_MISMATCH; - break; - } + if ( ProcessInformationLength != Length ) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + } /* Protect writes with SEH */ _SEH_TRY { @@ -132,7 +132,7 @@ ProcessBasicInfo->ExitStatus = Process->ExitStatus; ProcessBasicInfo->PebBaseAddress = Process->Peb; ProcessBasicInfo->AffinityMask = Process->Pcb.Affinity; - ProcessBasicInfo->UniqueProcessId = (ULONG)Process-> + ProcessBasicInfo->UniqueProcessId = (ULONG_PTR)Process-> UniqueProcessId; ProcessBasicInfo->InheritedFromUniqueProcessId = (ULONG)Process->InheritedFromUniqueProcessId; @@ -151,12 +151,12 @@ case ProcessQuotaLimits: case ProcessIoCounters:
- Length = sizeof(IO_COUNTERS); - if ( ProcessInformationLength != Length ) - { - Status = STATUS_INFO_LENGTH_MISMATCH; - break; - } + Length = sizeof(IO_COUNTERS); + if ( ProcessInformationLength != Length ) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + }
Status = STATUS_NOT_IMPLEMENTED; break; @@ -167,11 +167,11 @@ /* Set the return length */ Length = sizeof(KERNEL_USER_TIMES);
- if ( ProcessInformationLength != Length ) - { - Status = STATUS_INFO_LENGTH_MISMATCH; - break; - } + if ( ProcessInformationLength != Length ) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + }
/* Protect writes with SEH */ _SEH_TRY @@ -225,11 +225,11 @@ /* Set the return length*/ Length = sizeof(ULONG);
- if ( ProcessInformationLength != Length ) - { - Status = STATUS_INFO_LENGTH_MISMATCH; - break; - } + if ( ProcessInformationLength != Length ) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + }
/* Count the number of handles this process has */ HandleCount = ObpGetHandleCountByHandleTable(Process->ObjectTable); @@ -279,11 +279,11 @@ /* Set the return length */ Length = sizeof(VM_COUNTERS);
- if ( ProcessInformationLength != Length ) - { - Status = STATUS_INFO_LENGTH_MISMATCH; - break; - } + if ( ProcessInformationLength != Length ) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + }
/* Enter SEH for write safety */ _SEH_TRY