- Set the number of processors before initialize the critical sections.
Modified: trunk/reactos/lib/ntdll/ldr/startup.c
_____
Modified: trunk/reactos/lib/ntdll/ldr/startup.c
--- trunk/reactos/lib/ntdll/ldr/startup.c 2005-01-05 19:02:00 UTC
(rev 12826)
+++ trunk/reactos/lib/ntdll/ldr/startup.c 2005-01-05 19:02:23 UTC
(rev 12827)
@@ -279,10 +279,6 @@
NTHeaders = (PIMAGE_NT_HEADERS)(ImageBase +
PEDosHeader->e_lfanew);
- /* Initialize Critical Section Data */
- RtlpInitDeferedCriticalSection();
-
-
/* Get number of processors */
Status = ZwQuerySystemInformation(SystemBasicInformation,
&SystemInformation,
@@ -294,6 +290,10 @@
}
Peb->NumberOfProcessors = SystemInformation.NumberProcessors;
+
+ /* Initialize Critical Section Data */
+ RtlpInitDeferedCriticalSection();
+
/* create process heap */
RtlInitializeHeapManager();
Peb->ProcessHeap = RtlCreateHeap(HEAP_GROWABLE,
Show replies by date