mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 05:41:21 +00:00
[NTOS]: Go back to using RosMm for the NLS section since supposedly this causes issues on some systems. This is the only actual change in r206/208/209, so if Caemyr's data is correct, this fill fix it.
svn path=/trunk/; revision=49211
This commit is contained in:
parent
60501a925e
commit
b238bc9126
2 changed files with 4 additions and 4 deletions
|
@ -296,7 +296,7 @@ ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
NULL,
|
NULL,
|
||||||
&SectionSize,
|
&SectionSize,
|
||||||
PAGE_READWRITE,
|
PAGE_READWRITE,
|
||||||
SEC_COMMIT | 0x1,
|
SEC_COMMIT,
|
||||||
NULL);
|
NULL);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
@ -319,7 +319,7 @@ ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Map the NLS Section in system space */
|
/* Map the NLS Section in system space */
|
||||||
Status = MmMapViewInSystemSpace((PVOID)((ULONG_PTR)ExpNlsSectionPointer | 0x1),
|
Status = MmMapViewInSystemSpace(ExpNlsSectionPointer,
|
||||||
&SectionBase,
|
&SectionBase,
|
||||||
&ExpNlsTableSize);
|
&ExpNlsTableSize);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
@ -349,7 +349,7 @@ ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
SectionBase = NULL;
|
SectionBase = NULL;
|
||||||
|
|
||||||
/* Map the section in the system process */
|
/* Map the section in the system process */
|
||||||
Status = MmMapViewOfSection((PVOID)((ULONG_PTR)ExpNlsSectionPointer | 0x1),
|
Status = MmMapViewOfSection(ExpNlsSectionPointer,
|
||||||
PsGetCurrentProcess(),
|
PsGetCurrentProcess(),
|
||||||
&SectionBase,
|
&SectionBase,
|
||||||
0L,
|
0L,
|
||||||
|
|
|
@ -581,7 +581,7 @@ MmCreatePeb(IN PEPROCESS Process,
|
||||||
//
|
//
|
||||||
// Map NLS Tables
|
// Map NLS Tables
|
||||||
//
|
//
|
||||||
Status = MmMapViewOfSection((PVOID)((ULONG_PTR)ExpNlsSectionPointer | 0x1),
|
Status = MmMapViewOfSection(ExpNlsSectionPointer,
|
||||||
(PEPROCESS)Process,
|
(PEPROCESS)Process,
|
||||||
&TableBase,
|
&TableBase,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue