Author: fireball
Date: Sat Sep 13 04:59:22 2008
New Revision: 36182
URL:
http://svn.reactos.org/svn/reactos?rev=36182&view=rev
Log:
- Call NtCreateSection and NtMapViewOfSection with more correct parameters.
Modified:
trunk/reactos/dll/ntdll/ldr/utils.c
Modified: trunk/reactos/dll/ntdll/ldr/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/utils.c?rev=…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] Sat Sep 13 04:59:22 2008
@@ -697,7 +697,7 @@
NULL,
NULL,
PAGE_READONLY,
- SEC_COMMIT | (MapAsDataFile ? 0 : SEC_IMAGE),
+ MapAsDataFile ? SEC_COMMIT : SEC_IMAGE,
FileHandle);
NtClose(FileHandle);
@@ -2048,8 +2048,8 @@
0,
NULL,
&ViewSize,
+ ViewShare,
0,
- MEM_COMMIT,
PAGE_READONLY);
NtCurrentTeb()->Tib.ArbitraryUserPointer = ArbitraryUserPointer;
if (!NT_SUCCESS(Status))