Cleanup isn't necessary after calling the driver in NtQueryDirectoryFile.
[reactos.git] / reactos / ntoskrnl / rtl / strtok.c
index 535c1c7..70a31d2 100644 (file)
@@ -1,17 +1,16 @@
-/*
+/* $Id$
+ *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/rtl/strtok.c
  * PURPOSE:         Unicode and thread safe implementation of strtok
- * PROGRAMMER:      David Welch (welch@mcmail.com)
- * UPDATE HISTORY:
- *                  Created 22/05/98
+ *
+ * PROGRAMMERS:     David Welch (welch@mcmail.com)
  */
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-
+#include <ntoskrnl.h>
 #include <internal/debug.h>
 
 
@@ -23,7 +22,7 @@ char* strtok(char *s, const char *delim)
   int c, sc;
   char *tok;
   static char *last;
-   
+
   if (s == NULL && (s = last) == NULL)
     return (NULL);
 
@@ -79,7 +78,7 @@ PWSTR RtlStrtok(PUNICODE_STRING _string, PWSTR _sep,
    PWSTR string;
    PWSTR sep;
    PWSTR start;
-   
+
    if (_string!=NULL)
      {
        string = _string->Buffer;
@@ -88,9 +87,9 @@ PWSTR RtlStrtok(PUNICODE_STRING _string, PWSTR _sep,
      {
        string = *temp;
      }
-   
+
    start = string;
-   
+
    while ((*string)!=0)
      {
        sep = _sep;