mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +00:00
Map the NLS tables after creating the PEB.
The top-down mapping of the NLS tables may occupied the region for the PEB. svn path=/trunk/; revision=18881
This commit is contained in:
parent
9be78e0815
commit
34e6e97b69
1 changed files with 8 additions and 3 deletions
|
@ -203,6 +203,14 @@ MmCreatePeb(PEPROCESS Process)
|
||||||
|
|
||||||
DPRINT("MmCreatePeb\n");
|
DPRINT("MmCreatePeb\n");
|
||||||
|
|
||||||
|
/* Allocate the PEB */
|
||||||
|
Peb = MiCreatePebOrTeb(Process, (PVOID)PEB_BASE);
|
||||||
|
if (Peb != (PVOID)PEB_BASE)
|
||||||
|
{
|
||||||
|
DPRINT1("MiCreatePebOrTeb() returned %x\n", Peb);
|
||||||
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Map NLS Tables */
|
/* Map NLS Tables */
|
||||||
DPRINT("Mapping NLS\n");
|
DPRINT("Mapping NLS\n");
|
||||||
Status = MmMapViewOfSection(NlsSectionObject,
|
Status = MmMapViewOfSection(NlsSectionObject,
|
||||||
|
@ -225,9 +233,6 @@ MmCreatePeb(PEPROCESS Process)
|
||||||
/* Attach to Process */
|
/* Attach to Process */
|
||||||
KeAttachProcess(&Process->Pcb);
|
KeAttachProcess(&Process->Pcb);
|
||||||
|
|
||||||
/* Allocate the PEB */
|
|
||||||
Peb = MiCreatePebOrTeb(Process, (PVOID)PEB_BASE);
|
|
||||||
|
|
||||||
/* Initialize the PEB */
|
/* Initialize the PEB */
|
||||||
DPRINT("Allocated: %x\n", Peb);
|
DPRINT("Allocated: %x\n", Peb);
|
||||||
RtlZeroMemory(Peb, sizeof(PEB));
|
RtlZeroMemory(Peb, sizeof(PEB));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue