Index: cache/pinsup.c =================================================================== --- cache/pinsup.c (revision 65379) +++ cache/pinsup.c (working copy) @@ -471,7 +471,7 @@ { BOOLEAN Success = FALSE, FaultIn = FALSE; /* Note: windows 2000 drivers treat this as a bool */ - //BOOLEAN Wait = (Flags & MAP_WAIT) || (Flags == TRUE); + //BOOLEAN Wait = (Flags & MAP_WAIT) || (Flags); LARGE_INTEGER Target, EndInterval; ULONG BcbHead, SectionSize, ViewSize; PNOCC_BCB Bcb = NULL; Index: cc/pin.c =================================================================== --- cc/pin.c (revision 65379) +++ cc/pin.c (working copy) @@ -165,7 +165,7 @@ /* * FIXME: This is function is similar to CcPinRead, but doesn't * read the data if they're not present. Instead it should just - * prepare the VACBs and zero them out if Zero == TRUE. + * prepare the VACBs and zero them out if Zero != FALSE. * * For now calling CcPinRead is better than returning error or * just having UNIMPLEMENTED here. Index: config/cmalloc.c =================================================================== --- config/cmalloc.c (revision 65379) +++ config/cmalloc.c (working copy) @@ -57,7 +57,7 @@ PAGED_CODE(); /* Sanity checks */ - ASSERT(IsListEmpty(&Kcb->KeyBodyListHead) == TRUE); + ASSERT(IsListEmpty(&Kcb->KeyBodyListHead) != FALSE); for (i = 0; i < 4; i++) ASSERT(Kcb->KeyBodyArray[i] == NULL); /* Check if it wasn't privately allocated */ Index: config/cmapi.c =================================================================== --- config/cmapi.c (revision 65379) +++ config/cmapi.c (working copy) @@ -2188,7 +2188,7 @@ /* Count the current hash entry if it is in use */ SubKeys++; } - else if ((CachedKcb->RefCount == 0) && (RemoveEmptyCacheEntries == TRUE)) + else if ((CachedKcb->RefCount == 0) && (RemoveEmptyCacheEntries)) { /* Remove the current key from the delayed close list */ CmpRemoveFromDelayedClose(CachedKcb); Index: config/cmdelay.c =================================================================== --- config/cmdelay.c (revision 65379) +++ config/cmdelay.c (working copy) @@ -356,8 +356,8 @@ PAGED_CODE(); /* Sanity check */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Make sure it's valid */ if (Kcb->DelayedCloseIndex != CmpDelayedCloseSize) ASSERT(FALSE); @@ -364,7 +364,7 @@ /* Sanity checks */ ASSERT(Kcb->RefCount == 0); - ASSERT(IsListEmpty(&Kcb->KeyBodyListHead) == TRUE); + ASSERT(IsListEmpty(&Kcb->KeyBodyListHead) != FALSE); for (i = 0; i < 4; i++) ASSERT(Kcb->KeyBodyArray[i] == NULL); /* Allocate a delay item */ @@ -430,8 +430,8 @@ PAGED_CODE(); /* Sanity checks */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); if (Kcb->DelayedCloseIndex == CmpDelayedCloseSize) ASSERT(FALSE); /* Get the entry and lock the table */ Index: config/cmkcbncb.c =================================================================== --- config/cmkcbncb.c (revision 65379) +++ config/cmkcbncb.c (working copy) @@ -306,8 +306,8 @@ CmpRemoveKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb) { /* Make sure that the registry and KCB are utterly locked */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Remove the key hash */ CmpRemoveKeyHash(&Kcb->KeyHash); @@ -435,8 +435,8 @@ ULONG i; /* Sanity check */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Check if the value list is cached */ if (CMP_IS_CELL_CACHED(Kcb->ValueCache.ValueList)) @@ -482,8 +482,8 @@ PAGED_CODE(); /* Sanity checks */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); ASSERT(Kcb->RefCount == 0); /* Cleanup the value cache */ @@ -522,8 +522,8 @@ PCM_KEY_NODE KeyNode; /* Sanity check */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Check if there's any cached subkey */ if (Kcb->ExtFlags & (CM_KCB_NO_SUBKEY | CM_KCB_SUBKEY_ONE | CM_KCB_SUBKEY_HINT)) @@ -620,8 +620,8 @@ if ((InterlockedDecrement((PLONG)&Kcb->RefCount) & 0xFFFF) == 0) { /* Sanity check */ - ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(Kcb) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Check if we should do a direct delete */ if (((CmpHoldLazyFlush) && @@ -1086,8 +1086,8 @@ } /* Make sure we have the exclusive lock */ - ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* do the insert */ InsertTailList(&KeyBody->KeyControlBlock->KeyBodyListHead, @@ -1132,8 +1132,8 @@ /* Lock the KCB */ if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock); - ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) || - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) != FALSE) || + (CmpTestRegistryLockExclusive() != FALSE)); /* Remove the entry */ RemoveEntryList(&KeyBody->KeyBodyList); Index: config/cmsysini.c =================================================================== --- config/cmsysini.c (revision 65379) +++ config/cmsysini.c (working copy) @@ -1412,8 +1412,8 @@ for (i = 0; i < CM_NUMBER_OF_MACHINE_HIVES; i++) { /* Make sure the thread ran and finished */ - ASSERT(CmpMachineHiveList[i].ThreadFinished == TRUE); - ASSERT(CmpMachineHiveList[i].ThreadStarted == TRUE); + ASSERT(CmpMachineHiveList[i].ThreadFinished != FALSE); + ASSERT(CmpMachineHiveList[i].ThreadStarted != FALSE); /* Check if this was a new hive */ if (!CmpMachineHiveList[i].CmHive) Index: ex/hdlsterm.c =================================================================== --- ex/hdlsterm.c (revision 65379) +++ ex/hdlsterm.c (working copy) @@ -47,7 +47,7 @@ } else { - ASSERT(HeadlessGlobals->InBugCheck == TRUE); + ASSERT(HeadlessGlobals->InBugCheck != FALSE); } } @@ -505,7 +505,7 @@ (Command != HeadlessCmdSendBlueScreenData) && (Command != HeadlessCmdDoBugCheckProcessing)) { - ASSERT(HeadlessGlobals->ProcessingCmd == TRUE); + ASSERT(HeadlessGlobals->ProcessingCmd != FALSE); HeadlessGlobals->ProcessingCmd = FALSE; } Index: fsrtl/fastio.c =================================================================== --- fsrtl/fastio.c (revision 65379) +++ fsrtl/fastio.c (working copy) @@ -218,7 +218,7 @@ /* File was accessed */ FileObject->Flags |= FO_FILE_FAST_IO_READ; - if (Result == TRUE) + if (Result) { ASSERT((IoStatus->Status == STATUS_END_OF_FILE) || (((ULONGLONG)FileOffset->QuadPart + IoStatus->Information) <= @@ -227,7 +227,7 @@ } /* Update the current file offset */ - if (Result == TRUE) + if (Result) { FileObject->CurrentByteOffset.QuadPart = FileOffset->QuadPart + IoStatus->Information; } @@ -343,7 +343,7 @@ * If we append, use the file size as offset. * Also, check that we aren't crossing the 4GB boundary. */ - if (FileOffsetAppend == TRUE) + if (FileOffsetAppend) { Offset.LowPart = FcbHeader->FileSize.LowPart; NewSize.LowPart = FcbHeader->FileSize.LowPart + Length; @@ -381,7 +381,7 @@ /* Then we need to acquire the resource exclusive */ ExReleaseResourceLite(FcbHeader->Resource); ExAcquireResourceExclusiveLite(FcbHeader->Resource, TRUE); - if (FileOffsetAppend == TRUE) + if (FileOffsetAppend) { Offset.LowPart = FcbHeader->FileSize.LowPart; // ?? NewSize.LowPart = FcbHeader->FileSize.LowPart + Length; @@ -483,7 +483,7 @@ PsGetCurrentThread()->TopLevelIrp = 0; /* Did the operation succeed? */ - if (Result == TRUE) + if (Result) { /* Update the valid file size if necessary */ if (NewSize.LowPart > FcbHeader->ValidDataLength.LowPart) @@ -568,7 +568,7 @@ } /* Check if we are appending */ - if (FileOffsetAppend == TRUE) + if (FileOffsetAppend) { Offset.QuadPart = FcbHeader->FileSize.QuadPart; NewSize.QuadPart = FcbHeader->FileSize.QuadPart + Length; @@ -1338,7 +1338,7 @@ } /* Check if we are appending */ - if (FileOffsetAppend == TRUE) + if (FileOffsetAppend) { Offset.QuadPart = FcbHeader->FileSize.QuadPart; NewSize.QuadPart = FcbHeader->FileSize.QuadPart + Length; Index: fstub/disksup.c =================================================================== --- fstub/disksup.c (revision 65379) +++ fstub/disksup.c (working copy) @@ -672,7 +672,7 @@ /* Search for bootable partition */ for (j = 0; j < NUM_PARTITION_TABLE_ENTRIES && j < LayoutArray[DiskNumber]->PartitionCount; j++) { - if ((LayoutArray[DiskNumber]->PartitionEntry[j].BootIndicator == TRUE) && + if ((LayoutArray[DiskNumber]->PartitionEntry[j].BootIndicator) && IsRecognizedPartition(LayoutArray[DiskNumber]->PartitionEntry[j].PartitionType)) { if (LayoutArray[DiskNumber]->PartitionEntry[j].RewritePartition == FALSE) Index: include/internal/cm_x.h =================================================================== --- include/internal/cm_x.h (revision 65379) +++ include/internal/cm_x.h (working copy) @@ -88,31 +88,31 @@ // Makes sure that the registry is locked // #define CMP_ASSERT_REGISTRY_LOCK() \ - ASSERT((CmpSpecialBootCondition == TRUE) || \ - (CmpTestRegistryLock() == TRUE)) + ASSERT((CmpSpecialBootCondition != FALSE) || \ + (CmpTestRegistryLock() != FALSE)) // // Makes sure that the registry is locked or loading // #define CMP_ASSERT_REGISTRY_LOCK_OR_LOADING(h) \ - ASSERT((CmpSpecialBootCondition == TRUE) || \ - (((PCMHIVE)h)->HiveIsLoading == TRUE) || \ - (CmpTestRegistryLock() == TRUE)) + ASSERT((CmpSpecialBootCondition != FALSE) || \ + (((PCMHIVE)h)->HiveIsLoading != FALSE) || \ + (CmpTestRegistryLock() != FALSE)) // // Makes sure that the registry is exclusively locked // #define CMP_ASSERT_EXCLUSIVE_REGISTRY_LOCK() \ - ASSERT((CmpSpecialBootCondition == TRUE) || \ - (CmpTestRegistryLockExclusive() == TRUE)) + ASSERT((CmpSpecialBootCondition != FALSE) || \ + (CmpTestRegistryLockExclusive() != FALSE)) // // Makes sure that the registry is exclusively locked or loading // #define CMP_ASSERT_EXCLUSIVE_REGISTRY_LOCK_OR_LOADING(h) \ - ASSERT((CmpSpecialBootCondition == TRUE) || \ - (((PCMHIVE)h)->HiveIsLoading == TRUE) || \ - (CmpTestRegistryLockExclusive() == TRUE)) + ASSERT((CmpSpecialBootCondition != FALSE) || \ + (((PCMHIVE)h)->HiveIsLoading != FALSE) || \ + (CmpTestRegistryLockExclusive() != FALSE)) // // Makes sure this is a valid KCB @@ -278,7 +278,7 @@ { \ ASSERT(((GET_HASH_ENTRY(CmpCacheTable, k).Owner == \ KeGetCurrentThread())) || \ - (CmpTestRegistryLockExclusive() == TRUE)); \ + (CmpTestRegistryLockExclusive() != FALSE)); \ } // @@ -286,8 +286,8 @@ // #define CMP_ASSERT_KCB_LOCK(k) \ { \ - ASSERT((CmpIsKcbLockedExclusive(k) == TRUE) || \ - (CmpTestRegistryLockExclusive() == TRUE)); \ + ASSERT((CmpIsKcbLockedExclusive(k) != FALSE) || \ + (CmpTestRegistryLockExclusive() != FALSE)); \ } // @@ -306,11 +306,11 @@ // Makes sure that the registry is locked for flushes // #define CMP_ASSERT_FLUSH_LOCK(h) \ - ASSERT((CmpSpecialBootCondition == TRUE) || \ - (((PCMHIVE)h)->HiveIsLoading == TRUE) || \ - (CmpTestHiveFlusherLockShared((PCMHIVE)h) == TRUE) || \ - (CmpTestHiveFlusherLockExclusive((PCMHIVE)h) == TRUE) || \ - (CmpTestRegistryLockExclusive() == TRUE)); + ASSERT((CmpSpecialBootCondition != FALSE) || \ + (((PCMHIVE)h)->HiveIsLoading != FALSE) || \ + (CmpTestHiveFlusherLockShared((PCMHIVE)h) != FALSE) || \ + (CmpTestHiveFlusherLockExclusive((PCMHIVE)h) != FALSE) || \ + (CmpTestRegistryLockExclusive() != FALSE)); // // Asserts that either the registry or the KCB is locked @@ -319,7 +319,7 @@ { \ ASSERT(((GET_HASH_ENTRY(CmpCacheTable, k).Owner == \ KeGetCurrentThread())) || \ - (CmpTestRegistryLockExclusive() == TRUE)); \ + (CmpTestRegistryLockExclusive() != FALSE)); \ } // Index: include/internal/ke_x.h =================================================================== --- include/internal/ke_x.h (revision 65379) +++ include/internal/ke_x.h (working copy) @@ -514,7 +514,7 @@ Value = InterlockedExchange((PLONG)&Thread->ThreadLock, Value); /* Return the lock state */ - return (Value == TRUE); + return (Value != FALSE); } FORCEINLINE Index: io/iomgr/driver.c =================================================================== --- io/iomgr/driver.c (revision 65379) +++ io/iomgr/driver.c (working copy) @@ -127,7 +127,7 @@ DriverName.Length = 0; DriverName.MaximumLength = sizeof(NameBuffer); - if (FileSystem == TRUE) + if (FileSystem) RtlAppendUnicodeToString(&DriverName, FILESYSTEM_ROOT_NAME); else RtlAppendUnicodeToString(&DriverName, DRIVER_ROOT_NAME); @@ -494,7 +494,7 @@ /* Create ModuleName string */ if (ServiceName && ServiceName->Length > 0) { - if (FileSystemDriver == TRUE) + if (FileSystemDriver) wcscpy(NameBuffer, FILESYSTEM_ROOT_NAME); else wcscpy(NameBuffer, DRIVER_ROOT_NAME); Index: io/iomgr/file.c =================================================================== --- io/iomgr/file.c (revision 65379) +++ io/iomgr/file.c (working copy) @@ -2104,7 +2104,7 @@ } /* Check if we were 100% successful */ - if ((OpenPacket->ParseCheck == TRUE) && (OpenPacket->FileObject)) + if ((OpenPacket->ParseCheck) && (OpenPacket->FileObject)) { /* Dereference the File Object */ ObDereferenceObject(OpenPacket->FileObject); @@ -2375,7 +2375,7 @@ DesiredAccess, &OpenPacket, &Handle); - if (OpenPacket.ParseCheck != TRUE) + if ( !OpenPacket.ParseCheck ) { /* Parse failed */ IoStatus->Status = Status; @@ -3188,7 +3188,7 @@ DELETE, &OpenPacket, &Handle); - if (OpenPacket.ParseCheck != TRUE) return Status; + if ( !OpenPacket.ParseCheck ) return Status; /* Retrn the Io status */ return OpenPacket.FinalStatus; Index: kd64/kdapi.c =================================================================== --- kd64/kdapi.c (revision 65379) +++ kd64/kdapi.c (working copy) @@ -721,7 +721,7 @@ ASSERT(Data->Length == sizeof(CONTEXT)); /* Make sure that this is a valid request */ - if ((State->Processor < KeNumberProcessors) && (KdpContextSent == TRUE)) + if ((State->Processor < KeNumberProcessors) && (KdpContextSent)) { /* Check if the request is for this CPU */ if (State->Processor == KeGetCurrentPrcb()->Number) Index: ke/amd64/except.c =================================================================== --- ke/amd64/except.c (revision 65379) +++ ke/amd64/except.c (working copy) @@ -277,7 +277,7 @@ if (PreviousMode == KernelMode) { /* Check if this is a first-chance exception */ - if (FirstChance == TRUE) + if (FirstChance) { /* Break into the debugger for the first time */ if (KiDebugRoutine(TrapFrame, Index: ke/apc.c =================================================================== --- ke/apc.c (revision 65379) +++ ke/apc.c (working copy) @@ -109,7 +109,7 @@ ApcMode = Apc->ApcMode; /* The APC must be "inserted" already */ - ASSERT(Apc->Inserted == TRUE); + ASSERT(Apc->Inserted != FALSE); /* Three scenarios: * 1) Kernel APC with Normal Routine or User APC = Put it at the end of the List Index: ke/arm/exp.c =================================================================== --- ke/arm/exp.c (revision 65379) +++ ke/arm/exp.c (working copy) @@ -218,7 +218,7 @@ if (PreviousMode == KernelMode) { /* Check if this is a first-chance exception */ - if (FirstChance == TRUE) + if (FirstChance) { /* Break into the debugger for the first time */ if (KiDebugRoutine(TrapFrame, Index: ke/bug.c =================================================================== --- ke/bug.c (revision 65379) +++ ke/bug.c (working copy) @@ -67,7 +67,7 @@ i++; /* Check if this is a kernel entry and we only want drivers */ - if ((i <= 2) && (DriversOnly == TRUE)) + if ((i <= 2) && (DriversOnly)) { /* Skip it */ NextEntry = NextEntry->Flink; Index: ke/i386/cpu.c =================================================================== --- ke/i386/cpu.c (revision 65379) +++ ke/i386/cpu.c (working copy) @@ -1331,7 +1331,7 @@ } /* Need FXSR support for this */ - ASSERT(KeI386FxsrPresent == TRUE); + ASSERT(KeI386FxsrPresent != FALSE); /* Check for sane CR0 */ Cr0 = __readcr0(); Index: ke/i386/exp.c =================================================================== --- ke/i386/exp.c (revision 65379) +++ ke/i386/exp.c (working copy) @@ -898,7 +898,7 @@ if (PreviousMode == KernelMode) { /* Check if this is a first-chance exception */ - if (FirstChance == TRUE) + if (FirstChance) { /* Break into the debugger for the first time */ if (KiDebugRoutine(TrapFrame, Index: mm/ARM3/mdlsup.c =================================================================== --- mm/ARM3/mdlsup.c (revision 65379) +++ mm/ARM3/mdlsup.c (working copy) @@ -258,7 +258,7 @@ Pfn1 = MiGetPfnEntry(*Pages); ASSERT(Pfn1); ASSERT(Pfn1->u2.ShareCount == 1); - ASSERT(MI_IS_PFN_DELETED(Pfn1) == TRUE); + ASSERT(MI_IS_PFN_DELETED(Pfn1) != FALSE); if (Pfn1->u4.PteFrame != 0x1FFEDCB) { /* Corrupted PFN entry or invalid free */ Index: mm/ARM3/miarm.h =================================================================== --- mm/ARM3/miarm.h (revision 65379) +++ mm/ARM3/miarm.h (working copy) @@ -1123,7 +1123,7 @@ return FALSE; } -#define MI_IS_ROS_PFN(x) ((x)->u4.AweAllocation == TRUE) +#define MI_IS_ROS_PFN(x) ((x)->u4.AweAllocation != FALSE) VOID NTAPI @@ -1136,7 +1136,7 @@ BOOLEAN MI_IS_WS_UNSAFE(IN PEPROCESS Process) { - return (Process->Vm.Flags.AcquiredUnsafe == TRUE); + return (Process->Vm.Flags.AcquiredUnsafe != FALSE); } // @@ -1196,7 +1196,7 @@ ASSERT(Thread->OwnsProcessWorkingSetExclusive == FALSE); /* APCs must be blocked, make sure that still nothing is already held */ - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); ASSERT(!MM_ANY_WS_LOCK_HELD(Thread)); /* Lock the working set */ @@ -1222,7 +1222,7 @@ ASSERT(!MI_IS_WS_UNSAFE(Process)); /* The thread doesn't own it anymore */ - ASSERT(Thread->OwnsProcessWorkingSetExclusive == TRUE); + ASSERT(Thread->OwnsProcessWorkingSetExclusive != FALSE); Thread->OwnsProcessWorkingSetExclusive = FALSE; /* Release the lock and re-enable APCs */ @@ -1243,7 +1243,7 @@ ASSERT(!MI_IS_WS_UNSAFE(Process)); /* Ensure we are in a shared acquisition */ - ASSERT(Thread->OwnsProcessWorkingSetShared == TRUE); + ASSERT(Thread->OwnsProcessWorkingSetShared != FALSE); ASSERT(Thread->OwnsProcessWorkingSetExclusive == FALSE); /* Don't claim the lock anylonger */ @@ -1264,7 +1264,7 @@ { /* Make sure we are the owner of an unsafe acquisition */ ASSERT(KeGetCurrentIrql() <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); ASSERT(MI_WS_OWNER(Process)); ASSERT(MI_IS_WS_UNSAFE(Process)); @@ -1272,7 +1272,7 @@ Process->Vm.Flags.AcquiredUnsafe = 0; /* The thread doesn't own it anymore */ - ASSERT(Thread->OwnsProcessWorkingSetExclusive == TRUE); + ASSERT(Thread->OwnsProcessWorkingSetExclusive != FALSE); Thread->OwnsProcessWorkingSetExclusive = FALSE; /* Release the lock but don't touch APC state */ @@ -1339,15 +1339,15 @@ if (WorkingSet == &MmSystemCacheWs) { /* Release the system working set */ - ASSERT((Thread->OwnsSystemWorkingSetExclusive == TRUE) || - (Thread->OwnsSystemWorkingSetShared == TRUE)); + ASSERT((Thread->OwnsSystemWorkingSetExclusive != FALSE) || + (Thread->OwnsSystemWorkingSetShared != FALSE)); Thread->OwnsSystemWorkingSetExclusive = FALSE; } else if (WorkingSet->Flags.SessionSpace) { /* Release the session working set */ - ASSERT((Thread->OwnsSessionWorkingSetExclusive == TRUE) || - (Thread->OwnsSessionWorkingSetShared == TRUE)); + ASSERT((Thread->OwnsSessionWorkingSetExclusive != FALSE) || + (Thread->OwnsSessionWorkingSetShared != FALSE)); Thread->OwnsSessionWorkingSetExclusive = 0; } else Index: mm/ARM3/pagfault.c =================================================================== --- mm/ARM3/pagfault.c (revision 65379) +++ mm/ARM3/pagfault.c (working copy) @@ -40,7 +40,7 @@ { /* This isn't valid */ DPRINT1("Process owns address space lock\n"); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return STATUS_GUARD_PAGE_VIOLATION; } @@ -1184,7 +1184,7 @@ // OldIrql = KeGetCurrentIrql(); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); // // Grab a copy of the PTE @@ -1230,7 +1230,7 @@ /* Complete this as a transition fault */ ASSERT(OldIrql == KeGetCurrentIrql()); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return Status; } else @@ -1359,7 +1359,7 @@ /* Complete this as a transition fault */ ASSERT(OldIrql == KeGetCurrentIrql()); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return STATUS_PAGE_FAULT_TRANSITION; } @@ -1402,7 +1402,7 @@ /* Complete this as a transition fault */ ASSERT(OldIrql == KeGetCurrentIrql()); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return Status; } } @@ -1430,7 +1430,7 @@ ASSERT(OldIrql == KeGetCurrentIrql()); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return Status; } @@ -1448,7 +1448,7 @@ ASSERT(OldIrql == KeGetCurrentIrql()); ASSERT(OldIrql <= APC_LEVEL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); return Status; } @@ -1471,7 +1471,7 @@ PointerPte, Process, MM_NOIRQL); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); if (NT_SUCCESS(Status)) { // @@ -1876,7 +1876,7 @@ NULL); /* Release the working set */ - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); MiUnlockWorkingSet(CurrentThread, WorkingSet); KeLowerIrql(LockIrql); @@ -1974,7 +1974,7 @@ UserPdeFault = FALSE; #endif /* We should come back with APCs enabled, and with a valid PDE */ - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); ASSERT(PointerPde->u.Hard.Valid == 1); } else Index: mm/ARM3/pfnlist.c =================================================================== --- mm/ARM3/pfnlist.c (revision 65379) +++ mm/ARM3/pfnlist.c (working copy) @@ -1183,7 +1183,7 @@ if (Pfn1->u3.e2.ReferenceCount == 1) { /* Is there still a PFN for this page? */ - if (MI_IS_PFN_DELETED(Pfn1) == TRUE) + if (MI_IS_PFN_DELETED(Pfn1)) { /* Clear the last reference */ Pfn1->u3.e2.ReferenceCount = 0; Index: mm/ARM3/pool.c =================================================================== --- mm/ARM3/pool.c (revision 65379) +++ mm/ARM3/pool.c (working copy) @@ -1331,7 +1331,7 @@ PointerPde, MmSessionSpace->SessionPageDirectoryIndex, TRUE); - ASSERT(NT_SUCCESS(Status) == TRUE); + ASSERT(NT_SUCCESS( Status )); /* Initialize the first page table */ Index = (ULONG_PTR)MmSessionSpace->PagedPoolStart - (ULONG_PTR)MmSessionBase; Index: mm/ARM3/procsup.c =================================================================== --- mm/ARM3/procsup.c (revision 65379) +++ mm/ARM3/procsup.c (working copy) @@ -156,8 +156,8 @@ /* Sanity checks for a valid TEB VAD */ ASSERT((Vad->StartingVpn == ((ULONG_PTR)Teb >> PAGE_SHIFT) && (Vad->EndingVpn == (TebEnd >> PAGE_SHIFT)))); - ASSERT(Vad->u.VadFlags.NoChange == TRUE); - ASSERT(Vad->u2.VadFlags2.OneSecured == TRUE); + ASSERT(Vad->u.VadFlags.NoChange != FALSE); + ASSERT(Vad->u2.VadFlags2.OneSecured != FALSE); ASSERT(Vad->u2.VadFlags2.MultipleSecured == FALSE); /* Lock the working set */ Index: mm/ARM3/section.c =================================================================== --- mm/ARM3/section.c (revision 65379) +++ mm/ARM3/section.c (working copy) @@ -1624,7 +1624,7 @@ /* Get the section object of this process*/ SectionObject = PsGetCurrentProcess()->SectionObject; ASSERT(SectionObject != NULL); - ASSERT(MiIsRosSectionObject(SectionObject) == TRUE); + ASSERT(MiIsRosSectionObject(SectionObject) != FALSE); /* Return the image information */ *ImageInformation = ((PROS_SECTION_OBJECT)SectionObject)->ImageSection->ImageInformation; @@ -2804,7 +2804,7 @@ } /* Use the system space API, but with the session view instead */ - ASSERT(MmIsAddressValid(MmSessionSpace) == TRUE); + ASSERT(MmIsAddressValid(MmSessionSpace) != FALSE); return MiMapViewInSystemSpace(Section, &MmSessionSpace->Session, MappedBase, @@ -2834,7 +2834,7 @@ } /* Use the system space API, but with the session view instead */ - ASSERT(MmIsAddressValid(MmSessionSpace) == TRUE); + ASSERT(MmIsAddressValid(MmSessionSpace) != FALSE); return MiUnmapViewInSystemSpace(&MmSessionSpace->Session, MappedBase); } @@ -2920,7 +2920,7 @@ EndingAddress = ((ULONG_PTR)MappedBase + ViewSize - 1) | (PAGE_SIZE - 1); /* Sanity check and grab the session */ - ASSERT(MmIsAddressValid(MmSessionSpace) == TRUE); + ASSERT(MmIsAddressValid(MmSessionSpace) != FALSE); Session = &MmSessionSpace->Session; /* Get the hash entry for this allocation */ Index: mm/ARM3/session.c =================================================================== --- mm/ARM3/session.c (revision 65379) +++ mm/ARM3/session.c (working copy) @@ -422,7 +422,7 @@ } /* Sanity check */ - ASSERT(MmIsAddressValid(MmSessionSpace) == TRUE); + ASSERT(MmIsAddressValid(MmSessionSpace) != FALSE); /* Acquire the expansion lock while touching the session */ OldIrql = MiAcquireExpansionLock(); @@ -448,7 +448,7 @@ if (!(PsGetCurrentProcess()->Flags & PSF_PROCESS_IN_SESSION_BIT)) return; /* Sanity check */ - ASSERT(MmIsAddressValid(MmSessionSpace) == TRUE); + ASSERT(MmIsAddressValid(MmSessionSpace) != FALSE); /* Get the global session */ SessionGlobal = MmSessionSpace->GlobalVirtualAddress; @@ -519,7 +519,7 @@ OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock); /* Check if we need a page table */ - if (AllocatedPageTable == TRUE) + if (AllocatedPageTable) { /* Get a zeroed colored zero page */ Color = MI_GET_NEXT_COLOR(); @@ -797,11 +797,11 @@ /* Initialize session pool */ //Status = MiInitializeSessionPool(); Status = STATUS_SUCCESS; - ASSERT(NT_SUCCESS(Status) == TRUE); + ASSERT(NT_SUCCESS(Status) != FALSE); /* Initialize system space */ Result = MiInitializeSystemSpaceMap(&SessionGlobal->Session); - ASSERT(Result == TRUE); + ASSERT(Result != FALSE); /* Initialize the process list, make sure the workign set list is empty */ ASSERT(SessionGlobal->WsListEntry.Flink == NULL); Index: mm/ARM3/virtual.c =================================================================== --- mm/ARM3/virtual.c (revision 65379) +++ mm/ARM3/virtual.c (working copy) @@ -215,7 +215,7 @@ (PageTableVirtualAddress > MmPagedPoolEnd)); /* Working set lock or PFN lock should be held */ - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); /* Check if the page table is valid */ while (!MmIsAddressValid(PageTableVirtualAddress)) @@ -2377,7 +2377,7 @@ // Sanity checks. The latter is because we only use this function with the // PFN lock not held, so it may go away in the future. // - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); ASSERT(OldIrql == MM_NOIRQL); // @@ -2407,7 +2407,7 @@ // // Make sure APCs continued to be disabled // - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); // // First, make the PXE valid if needed Index: mm/freelist.c =================================================================== --- mm/freelist.c (revision 65379) +++ mm/freelist.c (working copy) @@ -17,7 +17,7 @@ #define MODULE_INVOLVED_IN_ARM3 #include "ARM3/miarm.h" -#define ASSERT_IS_ROS_PFN(x) ASSERT(MI_IS_ROS_PFN(x) == TRUE); +#define ASSERT_IS_ROS_PFN(x) ASSERT(MI_IS_ROS_PFN(x) != FALSE); /* GLOBALS ****************************************************************/ @@ -398,7 +398,7 @@ if (ListHead) { /* Should not be trying to insert an RMAP for a non-active page */ - ASSERT(MiIsPfnInUse(Pfn1) == TRUE); + ASSERT(MiIsPfnInUse(Pfn1) != FALSE); /* Set the list head address */ Pfn1->RmapListHead = ListHead; @@ -406,7 +406,7 @@ else { /* ReactOS semantics dictate the page is STILL active right now */ - ASSERT(MiIsPfnInUse(Pfn1) == TRUE); + ASSERT(MiIsPfnInUse(Pfn1) != FALSE); /* In this case, the RMAP is actually being removed, so clear field */ Pfn1->RmapListHead = NULL; @@ -437,7 +437,7 @@ ListHead = Pfn1->RmapListHead; /* Should not have an RMAP for a non-active page */ - ASSERT(MiIsPfnInUse(Pfn1) == TRUE); + ASSERT(MiIsPfnInUse(Pfn1) != FALSE); /* Release PFN database and return rmap list head */ KeReleaseQueuedSpinLock(LockQueuePfnLock, oldIrql); Index: mm/i386/page.c =================================================================== --- mm/i386/page.c (revision 65379) +++ mm/i386/page.c (working copy) @@ -289,7 +289,7 @@ NULL, NULL); DBG_UNREFERENCED_LOCAL_VARIABLE(Status); - ASSERT(KeAreAllApcsDisabled() == TRUE); + ASSERT(KeAreAllApcsDisabled() != FALSE); ASSERT(PointerPde->u.Hard.Valid == 1); } return (PULONG)MiAddressToPte(Address); Index: ps/process.c =================================================================== --- ps/process.c (revision 65379) +++ ps/process.c (working copy) @@ -767,7 +767,7 @@ if (!NT_SUCCESS(Status)) goto Cleanup; /* Compute Quantum and Priority */ - ASSERT(IsListEmpty(&Process->ThreadListHead) == TRUE); + ASSERT(IsListEmpty(&Process->ThreadListHead) != FALSE); Process->Pcb.BasePriority = (SCHAR)PspComputeQuantumAndPriority(Process, PsProcessPriorityBackground, Index: se/priv.c =================================================================== --- se/priv.c (revision 65379) +++ se/priv.c (working copy) @@ -446,7 +446,7 @@ PrivilegeSet->PrivilegeCount += Privileges->PrivilegeCount; /* Free the old privilege set if it was allocated */ - if (AccessState->PrivilegesAllocated == TRUE) + if (AccessState->PrivilegesAllocated) ExFreePool(AuxData->PrivilegeSet); /* Now we are using an allocated privilege set */