[SDK] Correct NtGlobalFlag names.
authorMark Jansen <mark.jansen@reactos.org>
Thu, 26 Apr 2018 20:54:23 +0000 (22:54 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 12 May 2018 11:34:24 +0000 (13:34 +0200)
dll/ntdll/ldr/ldrinit.c
sdk/include/ndk/pstypes.h

index 5162f1a..a5655ec 100644 (file)
@@ -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");
index 0b6e160..01468b2 100644 (file)
@@ -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