[NTOS:CM]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 25 Apr 2015 15:18:37 +0000 (15:18 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 25 Apr 2015 15:18:37 +0000 (15:18 +0000)
- Fix an ASSERT
CORE-6976

svn path=/trunk/; revision=67415

reactos/ntoskrnl/config/cmapi.c

index 22a19a0..40a1e58 100644 (file)
@@ -606,7 +606,7 @@ CmpQueryKeyData(IN PHHIVE Hive,
                 }
 
                 /* Copy the class data */
                 }
 
                 /* Copy the class data */
-                NT_ASSERT(Length > Offset);
+                NT_ASSERT(Length >= Offset);
                 RtlCopyMemory(Info->KeyFullInformation.Class,
                               ClassData,
                               min(Node->ClassLength, Length - Offset));
                 RtlCopyMemory(Info->KeyFullInformation.Class,
                               ClassData,
                               min(Node->ClassLength, Length - Offset));