https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5a68fbeb43bd9c5ddbff3…
commit 5a68fbeb43bd9c5ddbff3b83b82815f842b03e02
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Thu Apr 26 22:54:23 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat May 12 13:34:24 2018 +0200
[SDK] Correct NtGlobalFlag names.
---
dll/ntdll/ldr/ldrinit.c | 6 +++---
sdk/include/ndk/pstypes.h | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dll/ntdll/ldr/ldrinit.c b/dll/ntdll/ldr/ldrinit.c
index 5162f1afed..a5655eca41 100644
--- a/dll/ntdll/ldr/ldrinit.c
+++ b/dll/ntdll/ldr/ldrinit.c
@@ -1424,7 +1424,7 @@ LdrpInitializeExecutionOptions(PUNICODE_STRING ImagePathName, PPEB
Peb, PHANDLE
GlobalFlag = 0;
/* Call AVRF if necessary */
- if (Peb->NtGlobalFlag & (FLG_POOL_ENABLE_TAIL_CHECK |
FLG_HEAP_PAGE_ALLOCS))
+ if (Peb->NtGlobalFlag & (FLG_APPLICATION_VERIFIER |
FLG_HEAP_PAGE_ALLOCS))
{
Status = LdrpInitializeApplicationVerifierPackage(ImagePathName, Peb, TRUE,
FALSE);
if (!NT_SUCCESS(Status))
@@ -1436,7 +1436,7 @@ LdrpInitializeExecutionOptions(PUNICODE_STRING ImagePathName, PPEB
Peb, PHANDLE
else
{
/* There are no image-specific options, so perform global initialization */
- if (Peb->NtGlobalFlag & (FLG_POOL_ENABLE_TAIL_CHECK |
FLG_HEAP_PAGE_ALLOCS))
+ if (Peb->NtGlobalFlag & (FLG_APPLICATION_VERIFIER |
FLG_HEAP_PAGE_ALLOCS))
{
/* Initialize app verifier package */
Status = LdrpInitializeApplicationVerifierPackage(ImagePathName, Peb, TRUE,
FALSE);
@@ -2055,7 +2055,7 @@ LdrpInitializeProcess(IN PCONTEXT Context,
}
/* Check if the Application Verifier was enabled */
- if (Peb->NtGlobalFlag & FLG_POOL_ENABLE_TAIL_CHECK)
+ if (Peb->NtGlobalFlag & FLG_APPLICATION_VERIFIER)
{
/* FIXME */
DPRINT1("We don't support Application Verifier yet\n");
diff --git a/sdk/include/ndk/pstypes.h b/sdk/include/ndk/pstypes.h
index 0b6e160922..01468b2eb9 100644
--- a/sdk/include/ndk/pstypes.h
+++ b/sdk/include/ndk/pstypes.h
@@ -61,8 +61,7 @@ extern POBJECT_TYPE NTSYSAPI PsJobType;
#define FLG_HEAP_ENABLE_FREE_CHECK 0x00000020
#define FLG_HEAP_VALIDATE_PARAMETERS 0x00000040
#define FLG_HEAP_VALIDATE_ALL 0x00000080
-#define FLG_POOL_ENABLE_TAIL_CHECK 0x00000100
-#define FLG_POOL_ENABLE_FREE_CHECK 0x00000200
+#define FLG_APPLICATION_VERIFIER 0x00000100
#define FLG_POOL_ENABLE_TAGGING 0x00000400
#define FLG_HEAP_ENABLE_TAGGING 0x00000800
#define FLG_USER_STACK_TRACE_DB 0x00001000