Index: 3rdparty/freetype/src/sfnt/sfobjs.c =================================================================== --- 3rdparty/freetype/src/sfnt/sfobjs.c (revision 65379) +++ 3rdparty/freetype/src/sfnt/sfobjs.c (working copy) @@ -1214,7 +1214,7 @@ face->sbit_table_type == TT_SBIT_TABLE_TYPE_SBIX ) flags |= FT_FACE_FLAG_COLOR; /* color glyphs */ - if ( has_outline == TRUE ) + if ( has_outline ) flags |= FT_FACE_FLAG_SCALABLE; /* scalable outlines */ /* The sfnt driver only supports bitmap fonts natively, thus we */ @@ -1257,7 +1257,7 @@ /* */ flags = 0; - if ( has_outline == TRUE && face->os2.version != 0xFFFFU ) + if ( has_outline && face->os2.version != 0xFFFFU ) { /* We have an OS/2 table; use the `fsSelection' field. Bit 9 */ /* indicates an oblique font face. This flag has been */ Index: cmlib/cmtools.c =================================================================== --- cmlib/cmtools.c (revision 65379) +++ cmlib/cmtools.c (working copy) @@ -44,7 +44,7 @@ { ULONG i; - if (NamePacked == TRUE) + if (NamePacked) { PUCHAR PackedName = (PUCHAR)Name; @@ -153,7 +153,7 @@ ASSERT(Name != 0); ASSERT(NameLength != 0); - if (NamePacked == TRUE) + if (NamePacked) { NameLength *= sizeof(WCHAR); CharCount = min(BufferLength, NameLength) / sizeof(WCHAR); Index: drivers/hidparser/api.c =================================================================== --- drivers/hidparser/api.c (revision 65379) +++ drivers/hidparser/api.c (working copy) @@ -184,7 +184,7 @@ // // check item type // - if (Report->Items[Index].HasData && bData == TRUE) + if (Report->Items[Index].HasData && bData) { // // found data item Index: drivers/hidparser/hidparser.c =================================================================== --- drivers/hidparser/hidparser.c (revision 65379) +++ drivers/hidparser/hidparser.c (working copy) @@ -139,9 +139,9 @@ DeviceDescription->ReportIDs[Index].FeatureLength = HidParser_GetReportLength((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_FEATURE); - DeviceDescription->ReportIDs[Index].InputLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_INPUT) == TRUE ? 1 : 0); - DeviceDescription->ReportIDs[Index].OutputLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_OUTPUT) == TRUE ? 1 : 0); - DeviceDescription->ReportIDs[Index].FeatureLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_FEATURE) == TRUE ? 1 : 0); + DeviceDescription->ReportIDs[Index].InputLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_INPUT) ? 1 : 0); + DeviceDescription->ReportIDs[Index].OutputLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_OUTPUT) ? 1 : 0); + DeviceDescription->ReportIDs[Index].FeatureLength += (HidParser_UsesReportId((PVOID)DeviceDescription->CollectionDesc[Index].PreparsedData, HID_REPORT_TYPE_FEATURE) ? 1 : 0); // Index: drivers/hidparser/parser.c =================================================================== --- drivers/hidparser/parser.c (revision 65379) +++ drivers/hidparser/parser.c (working copy) @@ -570,7 +570,7 @@ ReportItem->BitCount = GlobalItemState->ReportSize; ReportItem->HasData = (ItemData->DataConstant == FALSE); ReportItem->Array = (ItemData->ArrayVariable == 0); - ReportItem->Relative = (ItemData->Relative == TRUE); + ReportItem->Relative = (ItemData->Relative); ReportItem->Minimum = LogicalMinimum; ReportItem->Maximum = LogicalMaximum; ReportItem->UsageMinimum = UsageMinimum; Index: drivers/ip/network/routines.c =================================================================== --- drivers/ip/network/routines.c (revision 65379) +++ drivers/ip/network/routines.c (working copy) @@ -63,8 +63,8 @@ UINT Length; PCHAR CharBuffer; - if ((DbgQueryDebugFilterState(DPFLTR_TCPIP_ID, DEBUG_PBUFFER | DPFLTR_MASK) != TRUE) || - (DbgQueryDebugFilterState(DPFLTR_TCPIP_ID, DEBUG_IP | DPFLTR_MASK) != TRUE)) { + if (( !DbgQueryDebugFilterState( DPFLTR_TCPIP_ID, DEBUG_PBUFFER | DPFLTR_MASK )) || + ( !DbgQueryDebugFilterState( DPFLTR_TCPIP_ID, DEBUG_IP | DPFLTR_MASK ))) { return; } Index: drivers/sound/mmebuddy/mmewrap.c =================================================================== --- drivers/sound/mmebuddy/mmewrap.c (revision 65379) +++ drivers/sound/mmebuddy/mmewrap.c (working copy) @@ -57,7 +57,7 @@ /* Store audio stream pause state */ SoundDeviceInstance->bPaused = !bStart; - if (SoundDeviceInstance->bPaused == FALSE && OldState == TRUE) + if (SoundDeviceInstance->bPaused == FALSE && OldState) { InitiateSoundStreaming(SoundDeviceInstance); } Index: drivers/sound/mmixer/controls.c =================================================================== --- drivers/sound/mmixer/controls.c (revision 65379) +++ drivers/sound/mmixer/controls.c (working copy) @@ -1586,7 +1586,7 @@ MMixerIsTopologyPinReserved(Topology, Index, &Reserved); /* check if it has already been reserved */ - if (Reserved == TRUE) + if (Reserved) { /* pin has already been reserved */ continue; Index: drivers/sound/mmixer/sup.c =================================================================== --- drivers/sound/mmixer/sup.c (revision 65379) +++ drivers/sound/mmixer/sup.c (working copy) @@ -465,7 +465,7 @@ else if ((Flags & (MIXER_SETCONTROLDETAILSF_VALUE | MIXER_SETCONTROLDETAILSF_CUSTOM)) == MIXER_SETCONTROLDETAILSF_VALUE) { /* sanity check */ - ASSERT(bSet == TRUE); + ASSERT(bSet != FALSE); ASSERT(MixerControlDetails->cbDetails == sizeof(MIXERCONTROLDETAILS_BOOLEAN)); Values = (LPMIXERCONTROLDETAILS_BOOLEAN)MixerControlDetails->paDetails; Index: rtl/debug.c =================================================================== --- rtl/debug.c (revision 65379) +++ rtl/debug.c (working copy) @@ -64,7 +64,7 @@ /* Check if we should print it or not */ if ((ComponentId != MAXULONG) && - (NtQueryDebugFilterState(ComponentId, Level)) != TRUE) + ! NtQueryDebugFilterState( ComponentId, Level )) { /* This message is masked */ return STATUS_SUCCESS; Index: rtl/env.c =================================================================== --- rtl/env.c (revision 65379) +++ rtl/env.c (working copy) @@ -535,7 +535,7 @@ } Value->Length = 0; - if (SysEnvUsed == TRUE) + if (SysEnvUsed) RtlAcquirePebLock(); wcs = Environment; @@ -573,7 +573,7 @@ Status = STATUS_BUFFER_TOO_SMALL; } - if (SysEnvUsed == TRUE) + if (SysEnvUsed) RtlReleasePebLock(); return(Status); @@ -582,7 +582,7 @@ wcs++; } - if (SysEnvUsed == TRUE) + if (SysEnvUsed) RtlReleasePebLock(); DPRINT("Return STATUS_VARIABLE_NOT_FOUND: %wZ\n", Name); Index: rtl/heappage.c =================================================================== --- rtl/heappage.c (revision 65379) +++ rtl/heappage.c (working copy) @@ -452,7 +452,7 @@ &NewElement); ASSERT(AddressUserData == &DphNode->pUserAllocation); - ASSERT(NewElement == TRUE); + ASSERT(NewElement != FALSE); /* Update heap counters */ DphRoot->nBusyAllocations++; @@ -617,7 +617,7 @@ /* Delete it from busy nodes table */ ElementPresent = RtlDeleteElementGenericTableAvl(&DphRoot->BusyNodesTable, &Node->pUserAllocation); - ASSERT(ElementPresent == TRUE); + ASSERT(ElementPresent != FALSE); /* Update counters */ DphRoot->nBusyAllocations--; Index: rtl/resource.c =================================================================== --- rtl/resource.c (revision 65379) +++ rtl/resource.c (working copy) @@ -105,7 +105,7 @@ goto done; } wait: - if (Wait == TRUE) + if (Wait) { Resource->ExclusiveWaiters++; @@ -120,10 +120,10 @@ } else /* one or more shared locks are in progress */ { - if (Wait == TRUE) + if (Wait) goto wait; } - if (retVal == TRUE) + if (retVal) Resource->OwningThread = NtCurrentTeb()->ClientId.UniqueThread; done: RtlLeaveCriticalSection(&Resource->Lock); @@ -154,7 +154,7 @@ goto done; } - if (Wait == TRUE) + if (Wait) { Resource->SharedWaiters++; RtlLeaveCriticalSection(&Resource->Lock); Index: rtl/time.c =================================================================== --- rtl/time.c (revision 65379) +++ rtl/time.c (working copy) @@ -106,7 +106,7 @@ { /* Compute the cutover time of the first day of the current month */ AdjustedTimeFields.Year = CurrentTimeFields.Year; - if (NextYearsCutover == TRUE) + if (NextYearsCutover) AdjustedTimeFields.Year++; AdjustedTimeFields.Month = CutoverTimeFields->Month; @@ -146,8 +146,8 @@ if (!RtlTimeFieldsToTime(&AdjustedTimeFields, &CutoverSystemTime)) return FALSE; - if (ThisYearsCutoverOnly == TRUE || - NextYearsCutover == TRUE || + if (ThisYearsCutoverOnly || + NextYearsCutover || CutoverSystemTime.QuadPart >= CurrentTime->QuadPart) { break; Index: rtl/unicode.c =================================================================== --- rtl/unicode.c (revision 65379) +++ rtl/unicode.c (working copy) @@ -1809,7 +1809,7 @@ PAGED_CODE_RTL(); - if (AllocateDestinationString == TRUE) + if (AllocateDestinationString) { UniDest->MaximumLength = UniSource->Length; UniDest->Buffer = RtlpAllocateStringMemory(UniDest->MaximumLength, TAG_USTR); @@ -2620,7 +2620,7 @@ ComputerNameOem.Length = (USHORT)ComputerNameOemNLength; ComputerNameOem.MaximumLength = (USHORT)(MAX_COMPUTERNAME_LENGTH + 1); - if (RtlpDidUnicodeToOemWork(DnsHostName, &ComputerNameOem) == TRUE) + if (RtlpDidUnicodeToOemWork(DnsHostName, &ComputerNameOem)) { /* no unmapped character so convert it back to an unicode string */ Status = RtlOemStringToUnicodeString(ComputerName, Index: sdk/crt/misc/lock.c =================================================================== --- sdk/crt/misc/lock.c (revision 65379) +++ sdk/crt/misc/lock.c (working copy) @@ -83,7 +83,7 @@ /* Uninitialize the table */ for( i=0; i < _TOTAL_LOCKS; i++ ) { - if( lock_table[ i ].bInit == TRUE ) + if( lock_table[ i ].bInit ) { msvcrt_uninitialize_mlock( i ); }