2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
[reactos.git] / reactos / lib / ntdll / rtl / thread.c
index 5b1cb87..0bd496c 100644 (file)
@@ -51,15 +51,15 @@ RtlCreateUserThread(HANDLE ProcessHandle,
 
   /* FIXME: use correct commit size */
 #if 0
-  if ((StackCommit != NULL) && (*StackCommit > PAGESIZE))
+  if ((StackCommit != NULL) && (*StackCommit > PAGE_SIZE))
     InitialTeb.StackCommit = *StackCommit;
   else
-    InitialTeb.StackCommit = PAGESIZE;
+    InitialTeb.StackCommit = PAGE_SIZE;
 #endif
-  InitialTeb.StackCommit = InitialTeb.StackReserve - PAGESIZE;
+  InitialTeb.StackCommit = InitialTeb.StackReserve - PAGE_SIZE;
 
   /* add size of guard page */
-  InitialTeb.StackCommit += PAGESIZE;
+  InitialTeb.StackCommit += PAGE_SIZE;
 
   /* Reserve stack */
   InitialTeb.StackAllocate = NULL;
@@ -110,7 +110,7 @@ RtlCreateUserThread(HANDLE ProcessHandle,
   /* Protect guard page */
   Status = NtProtectVirtualMemory(ProcessHandle,
                                  InitialTeb.StackLimit,
-                                 PAGESIZE,
+                                 PAGE_SIZE,
                                  PAGE_GUARD | PAGE_READWRITE,
                                  &OldPageProtection);
   if (!NT_SUCCESS(Status))