summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9be78e0)
The top-down mapping of the NLS tables may occupied the region for the PEB.
svn path=/trunk/; revision=18881
+ /* 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 */
DPRINT("Mapping NLS\n");
Status = MmMapViewOfSection(NlsSectionObject,
/* Map NLS Tables */
DPRINT("Mapping NLS\n");
Status = MmMapViewOfSection(NlsSectionObject,
/* Attach to Process */
KeAttachProcess(&Process->Pcb);
/* Attach to Process */
KeAttachProcess(&Process->Pcb);
- /* Allocate the PEB */
- Peb = MiCreatePebOrTeb(Process, (PVOID)PEB_BASE);
-
/* Initialize the PEB */
DPRINT("Allocated: %x\n", Peb);
RtlZeroMemory(Peb, sizeof(PEB));
/* Initialize the PEB */
DPRINT("Allocated: %x\n", Peb);
RtlZeroMemory(Peb, sizeof(PEB));