strip whitespace from end of lines
Modified: trunk/reactos/lib/rtl/acl.c
Modified: trunk/reactos/lib/rtl/env.c
Modified: trunk/reactos/lib/rtl/error.c
Modified: trunk/reactos/lib/rtl/exception.c
Modified: trunk/reactos/lib/rtl/heap.c
Modified: trunk/reactos/lib/rtl/i386/exception.c
Modified: trunk/reactos/lib/rtl/luid.c
Modified: trunk/reactos/lib/rtl/mem.c
Modified: trunk/reactos/lib/rtl/network.c
Modified: trunk/reactos/lib/rtl/process.c
Modified: trunk/reactos/lib/rtl/random.c
Modified: trunk/reactos/lib/rtl/registry.c
Modified: trunk/reactos/lib/rtl/sd.c
Modified: trunk/reactos/lib/rtl/security.c
Modified: trunk/reactos/lib/rtl/sid.c
Modified: trunk/reactos/lib/rtl/thread.c
Modified: trunk/reactos/lib/rtl/timezone.c
Modified: trunk/reactos/lib/rtl/unicode.c

Modified: trunk/reactos/lib/rtl/acl.c
--- trunk/reactos/lib/rtl/acl.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/acl.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -25,7 +25,7 @@
    PACE Current;
    PVOID AclEnd;
    ULONG i;
-   
+
    PAGED_CODE_RTL();
 
    Current = (PACE)(Acl + 1);
@@ -71,7 +71,7 @@
           PACE *Ace)
 {
    ULONG i;
-   
+
    PAGED_CODE_RTL();
 
    *Ace = (PACE)(Acl + 1);
@@ -114,7 +114,7 @@
                  ULONG Type)
 {
    PACE Ace;
-   
+
    PAGED_CODE_RTL();
 
    if (!RtlValidSid(Sid))
@@ -164,7 +164,7 @@
                         IN PSID Sid)
 {
    PAGED_CODE_RTL();
-   
+
    return RtlpAddKnownAce (Acl,
                            Revision,
                            0,
@@ -185,7 +185,7 @@
                           IN PSID Sid)
 {
    PAGED_CODE_RTL();
-   
+
    return RtlpAddKnownAce (Acl,
                            Revision,
                            Flags,
@@ -205,7 +205,7 @@
                        PSID Sid)
 {
    PAGED_CODE_RTL();
-   
+
    return RtlpAddKnownAce (Acl,
                            Revision,
                            0,
@@ -226,7 +226,7 @@
                          IN PSID Sid)
 {
    PAGED_CODE_RTL();
-   
+
    return RtlpAddKnownAce (Acl,
                            Revision,
                            Flags,
@@ -272,7 +272,7 @@
    ULONG i;
    PACE Current;
    ULONG j;
-   
+
    PAGED_CODE_RTL();
 
    if (Acl->AclRevision < MIN_ACL_REVISION ||
@@ -354,7 +354,7 @@
 {
    PACE Ace;
    ULONG Flags = 0;
-   
+
    PAGED_CODE_RTL();
 
    if (Success != FALSE)
@@ -425,7 +425,7 @@
                        BOOLEAN Failure)
 {
   PACE Ace;
-  
+
   PAGED_CODE_RTL();
 
   if (Success != FALSE)
@@ -513,7 +513,7 @@
 {
    PACE Ace;
    PACE Current;
-   
+
    PAGED_CODE_RTL();
 
    if (Acl->AclRevision < MIN_ACL_REVISION ||
@@ -557,7 +557,7 @@
              ULONG AclRevision)
 {
    PAGED_CODE_RTL();
-   
+
    if (AclSize < 8)
    {
       return(STATUS_BUFFER_TOO_SMALL);
@@ -595,7 +595,7 @@
                        ACL_INFORMATION_CLASS InformationClass)
 {
    PACE Ace;
-   
+
    PAGED_CODE_RTL();
 
    if (Acl->AclRevision < MIN_ACL_REVISION ||
@@ -664,7 +664,7 @@
                      ACL_INFORMATION_CLASS InformationClass)
 {
    PAGED_CODE_RTL();
-   
+
    if (Acl->AclRevision < MIN_ACL_REVISION ||
        Acl->AclRevision > MAX_ACL_REVISION)
    {
@@ -707,7 +707,7 @@
 {
    PACE Ace;
    USHORT Size;
-   
+
    PAGED_CODE_RTL();
 
    Size = ROUND_UP(Acl->AclSize, 4);

Modified: trunk/reactos/lib/rtl/env.c
--- trunk/reactos/lib/rtl/env.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/env.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -155,8 +155,8 @@
       }
       else
       {
-         /* Process environment variable. */ 
-         
+         /* Process environment variable. */
+
          VariableEnd = SourceBuffer + 1;
          Tail = SourceLength - 1;
          while (*VariableEnd != L'%' && Tail != 0)
@@ -167,7 +167,7 @@
 
          if (Tail != 0)
          {
-            Variable.MaximumLength = 
+            Variable.MaximumLength =
             Variable.Length = (VariableEnd - (SourceBuffer + 1)) * sizeof(WCHAR);
             Variable.Buffer = SourceBuffer + 1;
 

Modified: trunk/reactos/lib/rtl/error.c
--- trunk/reactos/lib/rtl/error.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/error.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -13,7 +13,7 @@
 
 /*
  * Partially taken from WINE, original copyright:
- * 
+ *
  * Copyright 2000 Alexandre Julliard
  */
 
@@ -862,7 +862,7 @@
  *  RtlNtStatusToDosErrorNoTeb
  *
  * DESCRIPTION
- * Convert an Executive status ID into a DOS error number 
+ * Convert an Executive status ID into a DOS error number
  * (winerror.h).
  *
  * ARGUMENTS
@@ -924,7 +924,7 @@
  *  RtlNtStatusToDosError
  *
  * DESCRIPTION
- * Convert an Executive status ID into a DOS error number 
+ * Convert an Executive status ID into a DOS error number
  * (winerror.h).
  *
  * ARGUMENTS
@@ -958,17 +958,17 @@
  * DESCRIPTION
  * Convert an Executive status ID into a POSIX error number
  * (errno.h).
- * 
+ *
  * NOTE
  *  Not present in the legacy WNT (a ReactOS extension to support
  *  the POSIX+ subsystem).
- *  
+ *
  * ARGUMENTS
  * Status The Executive status ID to convert.
  *
  * RETURN VALUE
  * errno as in errno.h
- * 
+ *
  * REVISIONS
  *  1999-11-30 ea
  */

Modified: trunk/reactos/lib/rtl/exception.c
--- trunk/reactos/lib/rtl/exception.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/exception.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -32,8 +32,8 @@
 NTSTATUS
 STDCALL
 RtlDispatchException(
-	PEXCEPTION_RECORD pExcptRec, 
-	CONTEXT * pContext 
+	PEXCEPTION_RECORD pExcptRec,
+	CONTEXT * pContext
 	)
 {
 	UNIMPLEMENTED;
@@ -69,7 +69,7 @@
 
   Status = ZwRaiseException(ExceptionRecord, &Context, TRUE);
   RtlRaiseException(ExceptionRecord);
-  RtlRaiseStatus(Status); 
+  RtlRaiseStatus(Status);
 }
 
 

Modified: trunk/reactos/lib/rtl/heap.c
--- trunk/reactos/lib/rtl/heap.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/heap.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -352,7 +352,7 @@
               subheap->heap );
       return FALSE;
    }
-      
+
    subheap->commitSize -= decommitsize;
    return TRUE;
 }
@@ -1077,12 +1077,12 @@
 
    /* link it into the per-process heap list */
    RtlEnterCriticalSection (&RtlpProcessHeapsListLock);
-   
+
    heapPtr = subheap->heap;
    heapPtr->next = (HEAP*)NtCurrentPeb()->ProcessHeaps;
    NtCurrentPeb()->ProcessHeaps = (HANDLE)heapPtr;
    NtCurrentPeb()->NumberOfHeaps++;
-   
+
    RtlLeaveCriticalSection (&RtlpProcessHeapsListLock);
 
    return (HANDLE)subheap;
@@ -1095,7 +1095,7 @@
  * FALSE: Failure
  *
  * @implemented
- * 
+ *
  * RETURNS
  *  Success: A NULL HANDLE, if heap is NULL or it was destroyed
  *  Failure: The Heap handle, if heap is the process heap.
@@ -1112,17 +1112,17 @@
    if (!heapPtr)
       return heap;
 
-   if (heap == NtCurrentPeb()->ProcessHeap) 
+   if (heap == NtCurrentPeb()->ProcessHeap)
       return heap; /* cannot delete the main process heap */
- 
+
    /* remove it from the per-process list */
    RtlEnterCriticalSection (&RtlpProcessHeapsListLock);
-   
+
    pptr = (HEAP**)&NtCurrentPeb()->ProcessHeaps;
    while (*pptr && *pptr != heapPtr) pptr = &(*pptr)->next;
    if (*pptr) *pptr = (*pptr)->next;
    NtCurrentPeb()->NumberOfHeaps--;
-   
+
    RtlLeaveCriticalSection (&RtlpProcessHeapsListLock);
 
    RtlDeleteCriticalSection( &heapPtr->critSection );
@@ -1715,7 +1715,7 @@
 {
    NTSTATUS Status = STATUS_SUCCESS;
    HEAP** pptr;
-   
+
    RtlEnterCriticalSection(&RtlpProcessHeapsListLock);
 
    for (pptr = (HEAP**)&NtCurrentPeb()->ProcessHeaps; *pptr; pptr = &(*pptr)->next)
@@ -1744,7 +1744,7 @@
    RtlEnterCriticalSection(&RtlpProcessHeapsListLock);
 
    Result = NtCurrentPeb()->NumberOfHeaps;
-   
+
    if (NtCurrentPeb()->NumberOfHeaps <= HeapCount)
    {
       int i = 0;

Modified: trunk/reactos/lib/rtl/i386/exception.c
--- trunk/reactos/lib/rtl/i386/exception.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/i386/exception.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -98,7 +98,7 @@
 #endif /* NDEBUG */
 
   RegistrationFrame = SehpGetExceptionList();
- 
+
   DPRINT("RegistrationFrame is 0x%X\n", RegistrationFrame);
 
   while ((ULONG_PTR)RegistrationFrame != -1)
@@ -125,7 +125,7 @@
       ExceptionRecord->ExceptionFlags |= EXCEPTION_STACK_INVALID;
       return ExceptionContinueExecution;
     }
- 
+
     // Make sure stack is DWORD aligned
     if ((ULONG_PTR)RegistrationFrame & 3)
     {
@@ -223,14 +223,14 @@
 
     RegistrationFrame = RegistrationFrame->prev;  // Go to previous frame
   }
- 
+
   /* No exception handler will handle this exception */
 
   DPRINT("RtlpDispatchException(): Return ExceptionContinueExecution\n");
 
   ExceptionRecord->ExceptionFlags = EXCEPTION_NONCONTINUABLE;
 
-  return ExceptionContinueExecution;  
+  return ExceptionContinueExecution;
 }
 
 
@@ -245,7 +245,7 @@
 {
   PEXCEPTION_REGISTRATION ERHead;
   PEXCEPTION_RECORD pExceptRec;
-  EXCEPTION_RECORD TempER;    
+  EXCEPTION_RECORD TempER;
   CONTEXT Context;
 
   DPRINT("RtlUnwind(). RegistrationFrame 0x%X\n", RegistrationFrame);
@@ -255,7 +255,7 @@
 #endif /* NDEBUG */
 
   ERHead = SehpGetExceptionList();
- 
+
   DPRINT("ERHead is 0x%X\n", ERHead);
 
   if (ExceptionRecord == NULL) // The normal case
@@ -302,12 +302,12 @@
 
   Context.Esp += 0x10;
   Context.Eax = EaxValue;
- 
+
   // Begin traversing the list of EXCEPTION_REGISTRATION
   while ((ULONG_PTR)ERHead != -1 && ERHead != RegistrationFrame)
   {
     EXCEPTION_RECORD er2;
- 
+
     DPRINT("ERHead 0x%X\n", ERHead);
 
     // If there's an exception frame, but it's lower on the stack
@@ -320,11 +320,11 @@
       er2.ExceptionRecord = pExceptRec;
       er2.NumberParameters = 0;
       er2.ExceptionCode = STATUS_INVALID_UNWIND_TARGET;
-      er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;    
- 
+      er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
+
       RtlRaiseException(&er2);
     }
- 
+
 #if 0
     Stack = ERHead + sizeof(EXCEPTION_REGISTRATION);
     if ( (Teb->Tib.StackBase <= (PVOID)ERHead )      // Make sure that ERHead
@@ -337,7 +337,7 @@
       PEXCEPTION_REGISTRATION NewERHead;
       PEXCEPTION_REGISTRATION pCurrExceptReg;
       EXCEPTION_DISPOSITION ReturnValue;
-  
+
       DPRINT("Executing handler at 0x%X for unwind\n", ERHead->handler);
 
       ReturnValue = RtlpExecuteHandlerForUnwind(
@@ -346,7 +346,7 @@
         &Context,
         &NewERHead,
         ERHead->handler);
- 
+
       DPRINT("Handler at 0x%X returned 0x%X\n", ERHead->handler, ReturnValue);
 
       if (ReturnValue != ExceptionContinueSearch)
@@ -358,8 +358,8 @@
           er2.ExceptionRecord = pExceptRec;
           er2.NumberParameters = 0;
           er2.ExceptionCode = STATUS_INVALID_DISPOSITION;
-          er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;    
- 
+          er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
+
           RtlRaiseException(&er2);
         }
         else
@@ -367,7 +367,7 @@
           ERHead = NewERHead;
         }
       }
- 
+
       pCurrExceptReg = ERHead;
       ERHead = ERHead->prev;
 
@@ -386,8 +386,8 @@
       er2.ExceptionRecord = pExceptRec;
       er2.NumberParameters = 0;
       er2.ExceptionCode = STATUS_BAD_STACK;
-      er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;    
- 
+      er2.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
+
       RtlRaiseException(&er2);
     }
   }

Modified: trunk/reactos/lib/rtl/luid.c
--- trunk/reactos/lib/rtl/luid.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/luid.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -23,7 +23,7 @@
             PLUID LuidSrc)
 {
    PAGED_CODE_RTL();
-   
+
    LuidDest->LowPart = LuidSrc->LowPart;
    LuidDest->HighPart = LuidSrc->HighPart;
 }
@@ -38,7 +38,7 @@
                               PLUID_AND_ATTRIBUTES Dest)
 {
    ULONG i;
-   
+
    PAGED_CODE_RTL();
 
    for (i = 0; i < Count; i++)
@@ -58,7 +58,7 @@
              PLUID Luid2)
 {
    PAGED_CODE_RTL();
-   
+
    return (Luid1->LowPart == Luid2->LowPart &&
            Luid1->HighPart == Luid2->HighPart);
 }

Modified: trunk/reactos/lib/rtl/mem.c
--- trunk/reactos/lib/rtl/mem.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/mem.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -1,6 +1,6 @@
 
 /* $Id$
- * 
+ *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
  * FILE:            lib/rtl/mem.c

Modified: trunk/reactos/lib/rtl/network.c
--- trunk/reactos/lib/rtl/network.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/network.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -158,8 +158,8 @@
 NTSTATUS
 STDCALL
 RtlIpv4StringToAddressW(
-	IN LPWSTR IpString, 
-	IN ULONG Base, 
+	IN LPWSTR IpString,
+	IN ULONG Base,
 	OUT PVOID PtrToIpAddr,
 	OUT ULONG IpAddr
 	)

Modified: trunk/reactos/lib/rtl/process.c
--- trunk/reactos/lib/rtl/process.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/process.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -30,13 +30,13 @@
    OBJECT_ATTRIBUTES ObjectAttributes;
    PSECURITY_DESCRIPTOR SecurityDescriptor = NULL;
    NTSTATUS Status;
-   
+
    hFile = NULL;
 
    RtlDeNormalizeProcessParams (Ppb);
 
 //   DbgPrint("ImagePathName %x\n", Ppb->ImagePathName.Buffer);
-   
+
    InitializeObjectAttributes(&ObjectAttributes,
 			      ImageFileName,
 			      Attributes & (OBJ_CASE_INSENSITIVE | OBJ_INHERIT),
@@ -44,7 +44,7 @@
 			      SecurityDescriptor);
 
    RtlNormalizeProcessParams (Ppb);
-   
+
    /*
     * Try to open the executable
     */
@@ -195,7 +195,7 @@
  *  - The first thread is created suspended, so it needs a manual resume!!!
  *  - If ParentProcess is NULL, current process is used
  *  - ProcessParameters must be normalized
- *  - Attributes are object attribute flags used when opening the ImageFileName. 
+ *  - Attributes are object attribute flags used when opening the ImageFileName.
  *    Valid flags are OBJ_INHERIT and OBJ_CASE_INSENSITIVE.
  *
  * -Gunnar
@@ -221,9 +221,9 @@
    SECTION_IMAGE_INFORMATION Sii;
    ULONG ResultLength;
    PVOID ImageBaseAddress;
-   
+
    DPRINT("RtlCreateUserProcess\n");
-   
+
    Status = RtlpMapFile(ImageFileName,
                         ProcessParameters,
 			Attributes,
@@ -250,7 +250,7 @@
    ZwClose(hSection);
 	return(Status);
      }
-   
+
    /*
     * Get some information about the process
     */
@@ -298,7 +298,7 @@
       );
 
    ZwClose(hSection);
-   
+
    if (!NT_SUCCESS(Status))
    {
 	DPRINT("Failed to create thread\n");

Modified: trunk/reactos/lib/rtl/random.c
--- trunk/reactos/lib/rtl/random.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/random.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -88,7 +88,7 @@
    ULONG Rand;
    int Pos;
    ULONG Result;
-   
+
    PAGED_CODE_RTL();
 
    Rand = (*Seed * 0x7fffffed + 0x7fffffc3) % 0x7fffffff;

Modified: trunk/reactos/lib/rtl/registry.c
--- trunk/reactos/lib/rtl/registry.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/registry.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -55,7 +55,7 @@
         DPRINT("ZwDuplicateObject() failed! Status: 0x%x\n", Status);
       }
 #endif
-      
+
       return(Status);
     }
 
@@ -163,7 +163,7 @@
 {
   HANDLE KeyHandle;
   NTSTATUS Status;
-  
+
   PAGED_CODE_RTL();
 
   Status = RtlpGetRegistryHandle(RelativeTo,
@@ -188,7 +188,7 @@
 {
   HANDLE KeyHandle;
   NTSTATUS Status;
-  
+
   PAGED_CODE_RTL();
 
   Status = RtlpGetRegistryHandle(RelativeTo,
@@ -215,7 +215,7 @@
   HANDLE KeyHandle;
   NTSTATUS Status;
   UNICODE_STRING Name;
-  
+
   PAGED_CODE_RTL();
 
   Status = RtlpGetRegistryHandle(RelativeTo,
@@ -249,7 +249,7 @@
   ULONG Length;
   UNICODE_STRING SidString;
   NTSTATUS Status;
-  
+
   PAGED_CODE_RTL();
 
   DPRINT ("RtlFormatCurrentUserKeyPath() called\n");
@@ -334,7 +334,7 @@
   OBJECT_ATTRIBUTES ObjectAttributes;
   UNICODE_STRING KeyPath;
   NTSTATUS Status;
-  
+
   PAGED_CODE_RTL();
 
   Status = RtlFormatCurrentUserKeyPath(&KeyPath);
@@ -398,7 +398,7 @@
   PWSTR ValueName;
   UNICODE_STRING EnvValue;
   UNICODE_STRING EnvExpandedValue;
-  
+
   PAGED_CODE_RTL();
 
   DPRINT("RtlQueryRegistryValues() called\n");
@@ -471,7 +471,7 @@
 		  Status = STATUS_OBJECT_NAME_NOT_FOUND;
 		  break;
 		}
-	
+
 	      if (QueryEntry->DefaultType == REG_SZ)
 		{
 		  PUNICODE_STRING ValueString;
@@ -888,7 +888,7 @@
   HANDLE KeyHandle;
   NTSTATUS Status;
   UNICODE_STRING Name;
-  
+
   PAGED_CODE_RTL();
 
   Status = RtlpGetRegistryHandle(RelativeTo,

Modified: trunk/reactos/lib/rtl/sd.c
--- trunk/reactos/lib/rtl/sd.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/sd.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -90,17 +90,17 @@
    {
       *OwnerLength = ((*Owner != NULL) ? ROUND_UP(RtlLengthSid(*Owner), 4) : 0);
    }
-   
+
    if (Group != NULL)
    {
       *GroupLength = ((*Group != NULL) ? ROUND_UP(RtlLengthSid(*Group), 4) : 0);
    }
-   
+
    if (Dacl != NULL)
    {
       *DaclLength = ((*Dacl != NULL) ? ROUND_UP((*Dacl)->AclSize, 4) : 0);
    }
-   
+
    if (Sacl != NULL)
    {
       *SaclLength = ((*Sacl != NULL) ? ROUND_UP((*Sacl)->AclSize, 4) : 0);
@@ -138,7 +138,7 @@
 			             ULONG Revision)
 {
    PAGED_CODE_RTL();
-   
+
    if (Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -165,9 +165,9 @@
    PSID Owner, Group;
    PACL Sacl, Dacl;
    ULONG Length = sizeof(SECURITY_DESCRIPTOR);
-   
+
    PAGED_CODE_RTL();
-   
+
    RtlpQuerySecurityDescriptorPointers(SecurityDescriptor,
                                        &Owner,
                                        &Group,
@@ -208,7 +208,7 @@
                              PBOOLEAN DaclDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -243,7 +243,7 @@
                              BOOLEAN DaclDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -281,14 +281,14 @@
 {
    PSID Owner, Group;
    PACL Sacl, Dacl;
-   
+
    PAGED_CODE_RTL();
 
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return FALSE;
    }
-   
+
    RtlpQuerySecurityDescriptorPointers(SecurityDescriptor,
                                        &Owner,
                                        &Group,
@@ -316,7 +316,7 @@
                               BOOLEAN OwnerDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -348,7 +348,7 @@
                               PBOOLEAN OwnerDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -375,7 +375,7 @@
                               BOOLEAN GroupDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -406,7 +406,7 @@
                               PBOOLEAN GroupDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -442,7 +442,7 @@
    ULONG DaclLength;
    ULONG TotalLength;
    ULONG_PTR Current;
-   
+
    PAGED_CODE_RTL();
 
    RtlpQuerySecurityDescriptor(AbsSD,
@@ -467,7 +467,7 @@
    RelSD->Revision = AbsSD->Revision;
    RelSD->Sbz1 = AbsSD->Sbz1;
    RelSD->Control = AbsSD->Control | SE_SELF_RELATIVE;
-   
+
    Current = (ULONG_PTR)(RelSD + 1);
 
    if (SaclLength != 0)
@@ -518,7 +518,7 @@
                             PULONG BufferLength)
 {
    PAGED_CODE_RTL();
-   
+
    if (AbsSD->Control & SE_SELF_RELATIVE)
    {
       return STATUS_BAD_DESCRIPTOR_FORMAT;
@@ -537,7 +537,7 @@
                                 PULONG Revision)
 {
    PAGED_CODE_RTL();
-   
+
    *Revision = SecurityDescriptor->Revision;
 
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
@@ -560,7 +560,7 @@
                                 IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)
 {
   PAGED_CODE_RTL();
-  
+
   if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
   {
     return STATUS_UNKNOWN_REVISION;
@@ -586,7 +586,7 @@
                              PBOOLEAN SaclDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -621,7 +621,7 @@
                              BOOLEAN SaclDefaulted)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)
    {
       return STATUS_UNKNOWN_REVISION;
@@ -675,7 +675,7 @@
    PSID pGroup;
    PACL pDacl;
    PACL pSacl;
-   
+
    PAGED_CODE_RTL();
 
    if (RelSD->Revision != SECURITY_DESCRIPTOR_REVISION1)
@@ -749,7 +749,7 @@
                                    IN SECURITY_INFORMATION RequiredInformation)
 {
    PAGED_CODE_RTL();
-   
+
    if (SecurityDescriptorLength < sizeof(SECURITY_DESCRIPTOR_RELATIVE) ||
        SecurityDescriptorInput->Revision != SECURITY_DESCRIPTOR_REVISION1 ||
        !(SecurityDescriptorInput->Control & SE_SELF_RELATIVE))
@@ -821,7 +821,7 @@
                                   PUCHAR RMControl)
 {
   PAGED_CODE_RTL();
-  
+
   if (!(SecurityDescriptor->Control & SE_RM_CONTROL_VALID))
   {
     *RMControl = 0;
@@ -842,7 +842,7 @@
                                   PUCHAR RMControl)
 {
   PAGED_CODE_RTL();
-  
+
   if (RMControl == NULL)
   {
     SecurityDescriptor->Control &= ~SE_RM_CONTROL_VALID;
@@ -865,7 +865,7 @@
                                    OUT PULONG Revision)
 {
   PAGED_CODE_RTL();
-  
+
   *Revision = SecurityDescriptor->Revision;
 
   if (SecurityDescriptor->Revision != SECURITY_DESCRIPTOR_REVISION1)

Modified: trunk/reactos/lib/rtl/security.c
--- trunk/reactos/lib/rtl/security.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/security.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -30,7 +30,7 @@
    SECURITY_QUALITY_OF_SERVICE Sqos;
 
    PAGED_CODE_RTL();
-   
+
    Status = NtOpenProcessToken(NtCurrentProcess(),
                                TOKEN_DUPLICATE,
                                &ProcessToken);
@@ -39,12 +39,12 @@
       DPRINT1("NtOpenProcessToken() failed (Status %lx)\n", Status);
       return(Status);
    }
-  
+
    Sqos.Length = sizeof(SECURITY_QUALITY_OF_SERVICE);
    Sqos.ImpersonationLevel = ImpersonationLevel;
    Sqos.ContextTrackingMode = 0;
    Sqos.EffectiveOnly = FALSE;
-   
+
    InitializeObjectAttributes(
       &ObjAttr,
       NULL,
@@ -52,9 +52,9 @@
       NULL,
       NULL
       );
-   
+
    ObjAttr.SecurityQualityOfService = &Sqos;
-   
+
    Status = NtDuplicateToken(ProcessToken,
                              TOKEN_IMPERSONATE,
                              &ObjAttr,
@@ -98,7 +98,7 @@
    ULONG ReturnLength;
    HANDLE TokenHandle;
    NTSTATUS Status;
-   
+
    PAGED_CODE_RTL();
 
    DPRINT ("RtlAdjustPrivilege() called\n");

Modified: trunk/reactos/lib/rtl/sid.c
--- trunk/reactos/lib/rtl/sid.c	2005-05-09 01:38:29 UTC (rev 15164)
+++ trunk/reactos/lib/rtl/sid.c	2005-05-09 01:41:02 UTC (rev 15165)
@@ -22,9 +22,9 @@
 RtlValidSid(IN PSID Sid_)
 {
   PISID Sid =  Sid_;
-  
+
   PAGED_CODE_RTL();
-  
+
   if ((Sid->Revision != SID_REVISION) ||
       (Sid->SubAuthorityCount > SID_MAX_SUB_AUTHORITIES))
     {
@@ -42,7 +42,7 @@
 RtlLengthRequiredSid(IN UCHAR SubAuthorityCount)
 {
   PAGED_CODE_RTL();
-  
+
   return (sizeof(SID) + (SubAuthorityCount - 1) * sizeof(ULONG));
 }
 
@@ -56,9 +56,9 @@
                  IN UCHAR SubAuthorityCount)
 {
   PISID Sid =  Sid_;
-  
+
   PAGED_CODE_RTL();
-  
+
   Sid->Revision = SID_REVISION;
   Sid->SubAuthorityCount = SubAuthorityCount;
   memcpy(&Sid->IdentifierAuthority,
@@ -77,9 +77,9 @@
                    IN ULONG SubAuthority)
 {
   PISID Sid =  Sid_;
-  
+
   PAGED_CODE_RTL();
-  
+
   return &Sid->SubAuthority[SubAuthority];
 }
 
@@ -91,9 +91,9 @@
[truncated at 1000 lines; 246 more skipped]