- Call NtCreateSection and NtMapViewOfSection with more correct parameters.

svn path=/trunk/; revision=36182
This commit is contained in:
Aleksey Bragin
2008-09-13 09:59:22 +00:00
parent 0a38b4914f
commit 6df53c008e
+2 -2
View File
@@ -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))