[NTOSKRNL] Write 'if (var) ASSERT(FALSE);' as 'ASSERT(!var);'

Based on Serge Gautherie's patch.
CORE-13216
This commit is contained in:
Katayama Hirofumi MZ 2022-10-10 09:33:08 +09:00
parent 92c904addc
commit 53ac8dae4d

View File

@ -1022,13 +1022,13 @@ IopInitializeBootDrivers(VOID)
/* Get highest group order index */
IopGroupIndex = PpInitGetGroupOrderIndex(NULL);
if (IopGroupIndex == 0xFFFF) ASSERT(FALSE);
ASSERT(IopGroupIndex != 0xFFFF);
/* Allocate the group table */
IopGroupTable = ExAllocatePoolWithTag(PagedPool,
IopGroupIndex * sizeof(LIST_ENTRY),
TAG_IO);
if (IopGroupTable == NULL) ASSERT(FALSE);
ASSERT(IopGroupTable != NULL);
/* Initialize the group table lists */
for (i = 0; i < IopGroupIndex; i++) InitializeListHead(&IopGroupTable[i]);