RtlCreateUnicodeString->RtlpCreateUnicodeString
Modified: trunk/reactos/ntoskrnl/cm/import.c
Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
Modified: trunk/reactos/ntoskrnl/cm/regfile.c
Modified: trunk/reactos/ntoskrnl/cm/registry.c
Modified: trunk/reactos/ntoskrnl/cm/regobj.c
Modified: trunk/reactos/ntoskrnl/dbg/kdb_symbols.c
Modified: trunk/reactos/ntoskrnl/ex/event.c
Modified: trunk/reactos/ntoskrnl/ex/evtpair.c
Modified: trunk/reactos/ntoskrnl/ex/mutant.c
Modified: trunk/reactos/ntoskrnl/ex/profile.c
Modified: trunk/reactos/ntoskrnl/ex/sem.c
Modified: trunk/reactos/ntoskrnl/ex/timer.c
Modified: trunk/reactos/ntoskrnl/ex/win32k.c
Modified: trunk/reactos/ntoskrnl/io/create.c
Modified: trunk/reactos/ntoskrnl/io/driver.c
Modified: trunk/reactos/ntoskrnl/io/iocomp.c
Modified: trunk/reactos/ntoskrnl/ob/namespc.c
Modified: trunk/reactos/ntoskrnl/ob/object.c
Modified: trunk/reactos/ntoskrnl/rtl/atom.c
Modified: trunk/reactos/ntoskrnl/se/token.c

Modified: trunk/reactos/ntoskrnl/cm/import.c
--- trunk/reactos/ntoskrnl/cm/import.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/cm/import.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -196,12 +196,12 @@
     }
 
   /* Set the hive filename */
-  RtlCreateUnicodeString (&RegistryHive->HiveFileName,
-			  SYSTEM_REG_FILE);
+  RtlpCreateUnicodeString (&RegistryHive->HiveFileName,
+           SYSTEM_REG_FILE, NonPagedPool);
 
   /* Set the log filename */
-  RtlCreateUnicodeString (&RegistryHive->LogFileName,
-			  SYSTEM_LOG_FILE);
+  RtlpCreateUnicodeString (&RegistryHive->LogFileName,
+           SYSTEM_LOG_FILE, NonPagedPool);
 
   return TRUE;
 }

Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
--- trunk/reactos/ntoskrnl/cm/ntfunc.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/cm/ntfunc.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -200,8 +200,7 @@
     }
   else
     {
-      RtlCreateUnicodeString(&KeyObject->Name,
-			     Start);
+      RtlpCreateUnicodeString(&KeyObject->Name, Start, NonPagedPool);
       RtlFreeUnicodeString(&RemainingPath);
     }
 

Modified: trunk/reactos/ntoskrnl/cm/regfile.c
--- trunk/reactos/ntoskrnl/cm/regfile.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/cm/regfile.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -863,11 +863,11 @@
 	 RegistryHive, Filename);
 
   /* Duplicate Filename */
-  Status = RtlCreateUnicodeString(&RegistryHive->HiveFileName,
-				  Filename);
+  Status = RtlpCreateUnicodeString(&RegistryHive->HiveFileName,
+              Filename, NonPagedPool);
   if (!NT_SUCCESS(Status))
     {
-      DPRINT("RtlCreateUnicodeString() failed (Status %lx)\n", Status);
+      DPRINT("RtlpCreateUnicodeString() failed (Status %lx)\n", Status);
       return(Status);
     }
 

Modified: trunk/reactos/ntoskrnl/cm/registry.c
--- trunk/reactos/ntoskrnl/cm/registry.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/cm/registry.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -315,7 +315,7 @@
   RootKey->NumberOfSubKeys = 0;
   RootKey->SubKeys = NULL;
   RootKey->SizeOfSubKeys = 0;
-  Status = RtlCreateUnicodeString(&RootKey->Name, L"Registry");
+  Status = RtlpCreateUnicodeString(&RootKey->Name, L"Registry", NonPagedPool);
   ASSERT(NT_SUCCESS(Status));
 
 #if 0
@@ -662,12 +662,12 @@
 
   DPRINT ("SubName %S\n", SubName);
 
-  Status = RtlCreateUnicodeString(&NewKey->Name,
-				  SubName);
+  Status = RtlpCreateUnicodeString(&NewKey->Name,
+              SubName, NonPagedPool);
   RtlFreeUnicodeString(&RemainingPath);
   if (!NT_SUCCESS(Status))
     {
-      DPRINT1("RtlCreateUnicodeString() failed (Status %lx)\n", Status);
+      DPRINT1("RtlpCreateUnicodeString() failed (Status %lx)\n", Status);
       if (NewKey->SubKeys != NULL)
 	{
 	  ExFreePool (NewKey->SubKeys);

Modified: trunk/reactos/ntoskrnl/cm/regobj.c
--- trunk/reactos/ntoskrnl/cm/regobj.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/cm/regobj.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -160,8 +160,8 @@
       FoundObject->KeyCell = SubKeyCell;
       FoundObject->KeyCellOffset = BlockOffset;
       FoundObject->RegistryHive = ParsedKey->RegistryHive;
-      RtlCreateUnicodeString(&FoundObject->Name,
-			     KeyName.Buffer);
+      RtlpCreateUnicodeString(&FoundObject->Name,
+              KeyName.Buffer, NonPagedPool);
       CmiAddKeyToList(ParsedKey, FoundObject);
       DPRINT("Created object 0x%x\n", FoundObject);
     }
@@ -248,8 +248,8 @@
       Start = RemainingPath;
       if(*Start == L'\\')
 	Start++;
-      RtlCreateUnicodeString(&KeyObject->Name,
-			     Start);
+      RtlpCreateUnicodeString(&KeyObject->Name,
+              Start, NonPagedPool);
     }
    else
     {

Modified: trunk/reactos/ntoskrnl/dbg/kdb_symbols.c
--- trunk/reactos/ntoskrnl/dbg/kdb_symbols.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/dbg/kdb_symbols.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-/* $Id:$
+/* $Id$
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -715,7 +715,7 @@
   RtlZeroMemory(CacheEntry, sizeof (IMAGE_SYMBOL_INFO_CACHE));
 
   /* fill entry */
-  RtlCreateUnicodeString(&CacheEntry->FileName, FileName->Buffer);
+  RtlpCreateUnicodeString(&CacheEntry->FileName, FileName->Buffer, NonPagedPool);
   ASSERT(CacheEntry->FileName.Buffer);
   CacheEntry->RefCount = 1;
   CacheEntry->FileBuffer = SymbolInfo->FileBuffer;

Modified: trunk/reactos/ntoskrnl/ex/event.c
--- trunk/reactos/ntoskrnl/ex/event.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/event.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -54,7 +54,7 @@
 {
    ExEventObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
    
-   RtlCreateUnicodeString(&ExEventObjectType->TypeName, L"Event");
+   RtlpCreateUnicodeString(&ExEventObjectType->TypeName, L"Event", NonPagedPool);
    
    ExEventObjectType->Tag = TAG('E', 'V', 'T', 'T');
    ExEventObjectType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ex/evtpair.c
--- trunk/reactos/ntoskrnl/ex/evtpair.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/evtpair.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -60,7 +60,7 @@
 {
    ExEventPairObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
    
-   RtlCreateUnicodeString(&ExEventPairObjectType->TypeName, L"EventPair");
+   RtlpCreateUnicodeString(&ExEventPairObjectType->TypeName, L"EventPair", NonPagedPool);
    ExEventPairObjectType->Tag = TAG('E', 'v', 'P', 'a');
    ExEventPairObjectType->PeakObjects = 0;
    ExEventPairObjectType->PeakHandles = 0;

Modified: trunk/reactos/ntoskrnl/ex/mutant.c
--- trunk/reactos/ntoskrnl/ex/mutant.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/mutant.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -65,7 +65,7 @@
 {
   ExMutantObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
 
-  RtlCreateUnicodeString(&ExMutantObjectType->TypeName, L"Mutant");
+  RtlpCreateUnicodeString(&ExMutantObjectType->TypeName, L"Mutant", NonPagedPool);
 
   ExMutantObjectType->Tag = TAG('M', 'T', 'N', 'T');
   ExMutantObjectType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ex/profile.c
--- trunk/reactos/ntoskrnl/ex/profile.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/profile.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -68,7 +68,7 @@
 
   ExProfileObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
   
-  RtlCreateUnicodeString(&ExProfileObjectType->TypeName, L"Profile");
+  RtlpCreateUnicodeString(&ExProfileObjectType->TypeName, L"Profile", NonPagedPool);
   
   ExProfileObjectType->Tag = TAG('P', 'R', 'O', 'F');
   ExProfileObjectType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ex/sem.c
--- trunk/reactos/ntoskrnl/ex/sem.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/sem.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -53,7 +53,7 @@
 {
    ExSemaphoreObjectType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
    
-   RtlCreateUnicodeString(&ExSemaphoreObjectType->TypeName, L"Semaphore");
+   RtlpCreateUnicodeString(&ExSemaphoreObjectType->TypeName, L"Semaphore", NonPagedPool);
    
    ExSemaphoreObjectType->Tag = TAG('S', 'E', 'M', 'T');
    ExSemaphoreObjectType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ex/timer.c
--- trunk/reactos/ntoskrnl/ex/timer.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/timer.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -119,7 +119,7 @@
    ASSERT(!ExTimerType)
    ExTimerType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
 
-   RtlCreateUnicodeString(&ExTimerType->TypeName, L"Timer");
+   RtlpCreateUnicodeString(&ExTimerType->TypeName, L"Timer", NonPagedPool);
 
    ExTimerType->Tag = TAG('T', 'I', 'M', 'T');
    ExTimerType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ex/win32k.c
--- trunk/reactos/ntoskrnl/ex/win32k.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ex/win32k.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -84,7 +84,7 @@
 
   DPRINT("Creating window station (0x%X)  Name (%wZ)\n", WinSta, &UnicodeString);
 
-  Status = RtlCreateUnicodeString(&WinSta->Name, UnicodeString.Buffer);
+  Status = RtlpCreateUnicodeString(&WinSta->Name, UnicodeString.Buffer, NonPagedPool);
   if (!NT_SUCCESS(Status))
   {
     return Status;
@@ -247,7 +247,7 @@
     &Desktop->ListEntry,
     &Desktop->WindowStation->Lock);
 
-  return RtlCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer);
+  return RtlpCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer, NonPagedPool);
 }
 
 VOID STDCALL

Modified: trunk/reactos/ntoskrnl/io/create.c
--- trunk/reactos/ntoskrnl/io/create.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/io/create.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -147,8 +147,8 @@
 	      DeviceObject = DeviceObject->Vpb->DeviceObject;
 	      DPRINT("FsDeviceObject %lx\n", DeviceObject);
 	    }
-	  RtlCreateUnicodeString(&(FileObject->FileName),
-				 RemainingPath);
+	  RtlpCreateUnicodeString(&(FileObject->FileName),
+             RemainingPath, NonPagedPool);
 	}
     }
   else
@@ -165,8 +165,8 @@
 
       FileObject->RelatedFileObject = (PFILE_OBJECT)Parent;
 
-      RtlCreateUnicodeString(&(FileObject->FileName),
-			     RemainingPath);
+      RtlpCreateUnicodeString(&(FileObject->FileName),
+              RemainingPath, NonPagedPool);
     }
 
   DPRINT("FileObject->FileName %wZ\n",

Modified: trunk/reactos/ntoskrnl/io/driver.c
--- trunk/reactos/ntoskrnl/io/driver.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/io/driver.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -794,8 +794,7 @@
 
       RtlZeroMemory(Group, sizeof(SERVICE_GROUP));
 
-      if (!RtlCreateUnicodeString(&Group->GroupName,
-				  (PWSTR)ValueData))
+      if (!RtlpCreateUnicodeString(&Group->GroupName, (PWSTR)ValueData, NonPagedPool))
 	{
 	  ExFreePool(Group);
 	  return(STATUS_INSUFFICIENT_RESOURCES);
@@ -1864,7 +1863,7 @@
       Start = DriverServiceName->Buffer;
    else
       Start++;
-   RtlCreateUnicodeString(&DeviceNode->ServiceName, Start);
+   RtlpCreateUnicodeString(&DeviceNode->ServiceName, Start, NonPagedPool);
 
    /*
     * Initialize the driver module

Modified: trunk/reactos/ntoskrnl/io/iocomp.c
--- trunk/reactos/ntoskrnl/io/iocomp.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/io/iocomp.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -119,7 +119,7 @@
 {
    ExIoCompletionType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
    
-   RtlCreateUnicodeString(&ExIoCompletionType->TypeName, L"IoCompletion");
+   RtlpCreateUnicodeString(&ExIoCompletionType->TypeName, L"IoCompletion", NonPagedPool);
    
    ExIoCompletionType->Tag = IOC_TAG;
    ExIoCompletionType->PeakObjects = 0;

Modified: trunk/reactos/ntoskrnl/ob/namespc.c
--- trunk/reactos/ntoskrnl/ob/namespc.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ob/namespc.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -195,7 +195,7 @@
 {
   KIRQL oldlvl;
 
-  RtlCreateUnicodeString(&Header->Name, Name);
+  RtlpCreateUnicodeString(&Header->Name, Name, NonPagedPool);
   Header->Parent = Parent;
 
   KeAcquireSpinLock(&Parent->Lock, &oldlvl);

Modified: trunk/reactos/ntoskrnl/ob/object.c
--- trunk/reactos/ntoskrnl/ob/object.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/ob/object.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -439,7 +439,7 @@
     }
 
   if (current)
-     RtlCreateUnicodeString (RemainingPath, current);
+     RtlpCreateUnicodeString (RemainingPath, current, NonPagedPool);
   RtlFreeUnicodeString (&PathString);
   *ReturnedObject = CurrentObject;
 

Modified: trunk/reactos/ntoskrnl/rtl/atom.c
--- trunk/reactos/ntoskrnl/rtl/atom.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/rtl/atom.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -377,8 +377,8 @@
      }
 
    InsertTailList(&AtomTable->Slot[Hash], &Entry->List);
-   RtlCreateUnicodeString (&Entry->Name,
-			   AtomName);
+   RtlpCreateUnicodeString (&Entry->Name,
+            AtomName, NonPagedPool);
    Entry->RefCount = 1;
    Entry->Locked = FALSE;
 

Modified: trunk/reactos/ntoskrnl/se/token.c
--- trunk/reactos/ntoskrnl/se/token.c	2005-02-01 17:41:49 UTC (rev 13382)
+++ trunk/reactos/ntoskrnl/se/token.c	2005-02-01 17:53:55 UTC (rev 13383)
@@ -547,8 +547,8 @@
   SepTokenObjectType->Create = NULL;
   SepTokenObjectType->DuplicationNotify = NULL;
 
-  RtlCreateUnicodeString(&SepTokenObjectType->TypeName,
-			 L"Token");
+  RtlpCreateUnicodeString(&SepTokenObjectType->TypeName,
+          L"Token", NonPagedPool);
   ObpCreateTypeObject (SepTokenObjectType);
 }