Author: fireball
Date: Thu Oct 7 16:51:19 2010
New Revision: 49033
URL:
http://svn.reactos.org/svn/reactos?rev=49033&view=rev
Log:
[NTDLL]
- Fix a typo which always set page heap enabled to true.
Modified:
trunk/reactos/dll/ntdll/ldr/startup.c
Modified: trunk/reactos/dll/ntdll/ldr/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/startup.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/startup.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/startup.c [iso-8859-1] Thu Oct 7 16:51:19 2010
@@ -139,53 +139,53 @@
FLG_USER_STACK_TRACE_DB |
FLG_HEAP_ENABLE_TAGGING |
FLG_HEAP_ENABLE_TAG_BY_DLL);
- }
-
- /* Get page heap flags without checking return value */
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapFlags",
- REG_DWORD,
- (PVOID)&RtlpPageHeapGlobalFlags,
- sizeof(RtlpPageHeapGlobalFlags),
- &ValueSize);
-
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapSizeRangeStart",
- REG_DWORD,
- (PVOID)&RtlpPageHeapSizeRangeStart,
- sizeof(RtlpPageHeapSizeRangeStart),
- &ValueSize);
-
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapSizeRangeEnd",
- REG_DWORD,
- (PVOID)&RtlpPageHeapSizeRangeEnd,
- sizeof(RtlpPageHeapSizeRangeEnd),
- &ValueSize);
-
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapDllRangeStart",
- REG_DWORD,
- (PVOID)&RtlpPageHeapDllRangeStart,
- sizeof(RtlpPageHeapDllRangeStart),
- &ValueSize);
-
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapDllRangeEnd",
- REG_DWORD,
- (PVOID)&RtlpPageHeapDllRangeEnd,
- sizeof(RtlpPageHeapDllRangeEnd),
- &ValueSize);
-
- LdrQueryImageFileExecutionOptions(&ImageName,
- L"PageHeapTargetDlls",
- REG_SZ,
- (PVOID)RtlpPageHeapTargetDlls,
- sizeof(RtlpPageHeapTargetDlls),
- &ValueSize);
-
- /* Now when all parameters are read, enable page heap */
- RtlpPageHeapEnabled = TRUE;
+
+ /* Get page heap flags without checking return value */
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapFlags",
+ REG_DWORD,
+ (PVOID)&RtlpPageHeapGlobalFlags,
+ sizeof(RtlpPageHeapGlobalFlags),
+ &ValueSize);
+
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapSizeRangeStart",
+ REG_DWORD,
+ (PVOID)&RtlpPageHeapSizeRangeStart,
+ sizeof(RtlpPageHeapSizeRangeStart),
+ &ValueSize);
+
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapSizeRangeEnd",
+ REG_DWORD,
+ (PVOID)&RtlpPageHeapSizeRangeEnd,
+ sizeof(RtlpPageHeapSizeRangeEnd),
+ &ValueSize);
+
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapDllRangeStart",
+ REG_DWORD,
+ (PVOID)&RtlpPageHeapDllRangeStart,
+ sizeof(RtlpPageHeapDllRangeStart),
+ &ValueSize);
+
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapDllRangeEnd",
+ REG_DWORD,
+ (PVOID)&RtlpPageHeapDllRangeEnd,
+ sizeof(RtlpPageHeapDllRangeEnd),
+ &ValueSize);
+
+ LdrQueryImageFileExecutionOptions(&ImageName,
+ L"PageHeapTargetDlls",
+ REG_SZ,
+ (PVOID)RtlpPageHeapTargetDlls,
+ sizeof(RtlpPageHeapTargetDlls),
+ &ValueSize);
+
+ /* Now when all parameters are read, enable page heap */
+ RtlpPageHeapEnabled = TRUE;
+ }
}
}