diff --git a/reactos/ntoskrnl/ob/oblife.c b/reactos/ntoskrnl/ob/oblife.c index 74a640b7bab..99879b773e2 100644 --- a/reactos/ntoskrnl/ob/oblife.c +++ b/reactos/ntoskrnl/ob/oblife.c @@ -1236,6 +1236,9 @@ ObCreateObjectType(IN PUNICODE_STRING TypeName, /* Set the index and the entry into the object type array */ LocalObjectType->Index = ObpTypeObjectType->TotalNumberOfObjects; + + NT_ASSERT(LocalObjectType->Index != 0); + if (LocalObjectType->Index < 32) { /* It fits, insert it */