mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[NTOSKRNL] Write 'if (var) ASSERT(FALSE);' as 'ASSERT(!var);'
Based on Serge Gautherie's patch. CORE-13216
This commit is contained in:
parent
92c904addc
commit
53ac8dae4d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user