mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
- Call NtCreateSection and NtMapViewOfSection with more correct parameters.
svn path=/trunk/; revision=36182
This commit is contained in:
@@ -697,7 +697,7 @@ LdrpMapDllImageFile(IN PWSTR SearchPath OPTIONAL,
|
||||
NULL,
|
||||
NULL,
|
||||
PAGE_READONLY,
|
||||
SEC_COMMIT | (MapAsDataFile ? 0 : SEC_IMAGE),
|
||||
MapAsDataFile ? SEC_COMMIT : SEC_IMAGE,
|
||||
FileHandle);
|
||||
NtClose(FileHandle);
|
||||
|
||||
@@ -2048,8 +2048,8 @@ LdrpLoadModule(IN PWSTR SearchPath OPTIONAL,
|
||||
0,
|
||||
NULL,
|
||||
&ViewSize,
|
||||
ViewShare,
|
||||
0,
|
||||
MEM_COMMIT,
|
||||
PAGE_READONLY);
|
||||
NtCurrentTeb()->Tib.ArbitraryUserPointer = ArbitraryUserPointer;
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
||||
Reference in New Issue
Block a user