- Fix some small formatting issues. Modified: trunk/reactos/ntoskrnl/ex/lookas.c Modified: trunk/reactos/ntoskrnl/ex/win32k.c Modified: trunk/reactos/ntoskrnl/ex/zone.c _____
Modified: trunk/reactos/ntoskrnl/ex/lookas.c --- trunk/reactos/ntoskrnl/ex/lookas.c 2005-12-29 17:55:31 UTC (rev 20426) +++ trunk/reactos/ntoskrnl/ex/lookas.c 2005-12-29 17:57:11 UTC (rev 20427) @@ -3,7 +3,6 @@
* PROJECT: ReactOS kernel * FILE: ntoskrnl/ex/lookas.c * PURPOSE: Lookaside lists - * * PROGRAMMERS: Alex Ionescu (alex@relsoft.net) * David Welch (welch@mcmail.com) * Casper S. Hornstrup (chorns@users.sourceforge.net) @@ -28,7 +27,7 @@
/* FUNCTIONS *****************************************************************/
-VOID +VOID INIT_FUNCTION STDCALL ExpInitLookasideLists() @@ -185,7 +184,6 @@ &ExpNonPagedLookasideListLock); }
- /* * @implemented */ _____
Modified: trunk/reactos/ntoskrnl/ex/win32k.c --- trunk/reactos/ntoskrnl/ex/win32k.c 2005-12-29 17:55:31 UTC (rev 20426) +++ trunk/reactos/ntoskrnl/ex/win32k.c 2005-12-29 17:57:11 UTC (rev 20427) @@ -1,12 +1,9 @@
-/* $Id$ - * +/* * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS kernel + * PROJECT: ReactOS Kernel * FILE: ntoskrnl/ex/win32k.c - * PURPOSE: Executive Win32 subsystem support - * - * PROGRAMMERS: Alex Ionescu (alex@relsoft.net) - Moved callbacks to win32k and cleanup. - * Casper S. Hornstrup (chorns@users.sourceforge.net) + * PURPOSE: Executive Win32 Object Support (Desktop/WinStation) + * PROGRAMMERS: Alex Ionescu (alex@relsoft.net) */
#include <ntoskrnl.h> @@ -104,7 +101,7 @@ ExpDesktopCreate(PVOID ObjectBody, PVOID Parent, PWSTR RemainingPath, - struct _OBJECT_ATTRIBUTES* ObjectAttributes) + POBJECT_ATTRIBUTES ObjectAttributes) { /* Call the Registered Callback */ return ExpDesktopObjectCreate(ObjectBody, @@ -128,9 +125,8 @@ { OBJECT_TYPE_INITIALIZER ObjectTypeInitializer; UNICODE_STRING Name; + DPRINT("Creating Win32 Object Types\n");
- DPRINT("Creating window station Object Type\n"); - /* Create the window station Object Type */ RtlZeroMemory(&ObjectTypeInitializer, sizeof(ObjectTypeInitializer)); RtlInitUnicodeString(&Name, L"WindowStation"); @@ -140,7 +136,9 @@ ObjectTypeInitializer.OpenProcedure = ExpWinStaObjectOpen; ObjectTypeInitializer.DeleteProcedure = ExpWinStaObjectDelete; ObjectTypeInitializer.ParseProcedure = ExpWinStaObjectParse; - ObpCreateTypeObject(&ObjectTypeInitializer, &Name, &ExWindowStationObjectType); + ObpCreateTypeObject(&ObjectTypeInitializer, + &Name, + &ExWindowStationObjectType);
/* Create desktop object type */ RtlInitUnicodeString(&Name, L"Desktop"); @@ -148,7 +146,6 @@ ObjectTypeInitializer.OpenProcedure = NULL; ObjectTypeInitializer.DeleteProcedure = ExpDesktopDelete; ObjectTypeInitializer.ParseProcedure = NULL; - ObpCreateTypeObject(&ObjectTypeInitializer, &Name, &ExDesktopObjectType); }
_____
Modified: trunk/reactos/ntoskrnl/ex/zone.c --- trunk/reactos/ntoskrnl/ex/zone.c 2005-12-29 17:55:31 UTC (rev 20426) +++ trunk/reactos/ntoskrnl/ex/zone.c 2005-12-29 17:57:11 UTC (rev 20427) @@ -3,7 +3,6 @@
* PROJECT: ReactOS kernel * FILE: ntoskrnl/ex/zone.c * PURPOSE: Implements zone buffers - * * PROGRAMMERS: Alex Ionescu (alex@relsoft.net) * David Welch (welch@mcmail.com) */ @@ -32,8 +31,8 @@ * BlockSize and Segment must be 8-byte aligned. * Blocksize cannot exceed Segment Size. */ - if (((ULONG_PTR)Segment & 7) || - (SegmentSize & 7) || + if (((ULONG_PTR)Segment & 7) || + (SegmentSize & 7) || (Zone->BlockSize > SegmentSize)) { DPRINT1("Invalid ExExtendZone Alignment and/or Size\n"); @@ -41,7 +40,8 @@ }
/* Link the Zone and Segment */ - PushEntryList(&Zone->SegmentList,&((PZONE_SEGMENT_HEADER)Segment)->Segme ntList); + PushEntryList(&Zone->SegmentList, + &((PZONE_SEGMENT_HEADER)Segment)->SegmentList);
/* Get to the first entry */ Entry = (ULONG_PTR)Segment + sizeof(ZONE_SEGMENT_HEADER); @@ -65,7 +65,6 @@ return STATUS_SUCCESS; }
- /* * @implemented */ @@ -74,7 +73,7 @@ ExInterlockedExtendZone(PZONE_HEADER Zone, PVOID Segment, ULONG SegmentSize, - PKSPIN_LOCK Lock) + PKSPIN_LOCK Lock) { NTSTATUS Status; KIRQL OldIrql; @@ -90,7 +89,6 @@ return Status; }
- /* * FUNCTION: Initalizes a zone header * ARGUMENTS: @@ -130,7 +128,8 @@ /* Link empty list */ Zone->FreeList.Next = NULL; Zone->SegmentList.Next = NULL; - PushEntryList(&Zone->SegmentList, &((PZONE_SEGMENT_HEADER)InitialSegment)->SegmentList); + PushEntryList(&Zone->SegmentList, + &((PZONE_SEGMENT_HEADER)InitialSegment)->SegmentList); ((PZONE_SEGMENT_HEADER)InitialSegment)->Reserved = NULL;
/* Get first entry */