Commit in reactos/ntoskrnl/cm on MAIN
rtlfunc.c+6-61.39 -> 1.40
- Changed some functions from Nt to Zw in RtlFormatCurrentUserKeyPath to bypass the buffer checks.

reactos/ntoskrnl/cm
rtlfunc.c 1.39 -> 1.40
diff -u -r1.39 -r1.40
--- rtlfunc.c	15 Aug 2004 16:39:00 -0000	1.39
+++ rtlfunc.c	5 Oct 2004 19:04:09 -0000	1.40
@@ -220,7 +220,7 @@
 
   DPRINT ("RtlFormatCurrentUserKeyPath() called\n");
 
-  Status = NtOpenThreadToken (NtCurrentThread (),
+  Status = ZwOpenThreadToken (NtCurrentThread (),
 			      TOKEN_READ,
 			      TRUE,
 			      &TokenHandle);
@@ -228,22 +228,22 @@
     {
       if (Status != STATUS_NO_TOKEN)
 	{
-	  DPRINT1 ("NtOpenThreadToken() failed (Status %lx)\n", Status);
+	  DPRINT1 ("ZwOpenThreadToken() failed (Status %lx)\n", Status);
 	  return Status;
 	}
 
-      Status = NtOpenProcessToken (NtCurrentProcess (),
+      Status = ZwOpenProcessToken (NtCurrentProcess (),
 				   TOKEN_READ,
 				   &TokenHandle);
       if (!NT_SUCCESS (Status))
 	{
-	  DPRINT1 ("NtOpenProcessToken() failed (Status %lx)\n", Status);
+	  DPRINT1 ("ZwOpenProcessToken() failed (Status %lx)\n", Status);
 	  return Status;
 	}
     }
 
   SidBuffer = (PSID_AND_ATTRIBUTES)Buffer;
-  Status = NtQueryInformationToken (TokenHandle,
+  Status = ZwQueryInformationToken (TokenHandle,
 				    TokenUser,
 				    (PVOID)SidBuffer,
 				    256,
@@ -251,7 +251,7 @@
   NtClose (TokenHandle);
   if (!NT_SUCCESS(Status))
     {
-      DPRINT ("NtQueryInformationToken() failed (Status %lx)\n", Status);
+      DPRINT ("ZwQueryInformationToken() failed (Status %lx)\n", Status);
       return Status;
     }
 
CVSspam 0.2.8