[BUGCODES]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 23 Sep 2013 21:12:39 +0000 (21:12 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 23 Sep 2013 21:12:39 +0000 (21:12 +0000)
Introduce the DRIVER_UNMAPPING_INVALID_VIEW bugcheck code and use it.

svn path=/trunk/; revision=60345

reactos/include/reactos/mc/bugcodes.mc
reactos/ntoskrnl/mm/ARM3/section.c

index 2215606..5a3ed06 100644 (file)
@@ -1389,7 +1389,15 @@ Severity=Success
 Facility=System
 SymbolicName=DRIVER_PORTION_MUST_BE_NONPAGED
 Language=English
 Facility=System
 SymbolicName=DRIVER_PORTION_MUST_BE_NONPAGED
 Language=English
-The driver mistakenly marked a part of it's image pageable instead of non-pageable.
+The driver mistakenly marked a part of its image pageable instead of non-pageable.
+.
+
+MessageId=0xD7
+Severity=Success
+Facility=System
+SymbolicName=DRIVER_UNMAPPING_INVALID_VIEW
+Language=English
+The driver is attempting to unmap an invalid memory address.
 .
 
 MessageId=0xD8
 .
 
 MessageId=0xD8
index 200f298..746508b 100644 (file)
@@ -2117,7 +2117,7 @@ MiRemoveFromSystemSpace(IN PMMSESSION Session,
             if (++Count == 2)
             {
                 /* But if we overflew twice, then this is not a real mapping */
             if (++Count == 2)
             {
                 /* But if we overflew twice, then this is not a real mapping */
-                KeBugCheckEx(0xD7, //DRIVER_UNMAPPING_INVALID_VIEW,
+                KeBugCheckEx(DRIVER_UNMAPPING_INVALID_VIEW,
                              (ULONG_PTR)Base,
                              1,
                              0,
                              (ULONG_PTR)Base,
                              1,
                              0,
@@ -2821,7 +2821,7 @@ MmCommitSessionMappedView(IN PVOID MappedBase,
             if (++Count == 2)
             {
                 /* But if we overflew twice, then this is not a real mapping */
             if (++Count == 2)
             {
                 /* But if we overflew twice, then this is not a real mapping */
-                KeBugCheckEx(0xD7, //DRIVER_UNMAPPING_INVALID_VIEW,
+                KeBugCheckEx(DRIVER_UNMAPPING_INVALID_VIEW,
                              Base,
                              2,
                              0,
                              Base,
                              2,
                              0,