mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 15:05:54 +00:00
- Set the number of processors before initialize the critical sections.
svn path=/trunk/; revision=12827
This commit is contained in:
parent
00e2091fd8
commit
7537381804
1 changed files with 4 additions and 4 deletions
|
@ -279,10 +279,6 @@ __true_LdrInitializeThunk (ULONG Unknown1,
|
|||
|
||||
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 @@ __true_LdrInitializeThunk (ULONG Unknown1,
|
|||
}
|
||||
|
||||
Peb->NumberOfProcessors = SystemInformation.NumberProcessors;
|
||||
|
||||
/* Initialize Critical Section Data */
|
||||
RtlpInitDeferedCriticalSection();
|
||||
|
||||
/* create process heap */
|
||||
RtlInitializeHeapManager();
|
||||
Peb->ProcessHeap = RtlCreateHeap(HEAP_GROWABLE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue