Index: calc/utl.c =================================================================== --- calc/utl.c (revision 65379) +++ calc/utl.c (working copy) @@ -19,7 +19,7 @@ #define MAX_LD_WIDTH 16 /* calculate the width of integer number */ width = (rpn->f==0) ? 1 : (int)log10(fabs(rpn->f))+1; - if (calc.sci_out == TRUE || width > MAX_LD_WIDTH || width < -MAX_LD_WIDTH) + if (calc.sci_out || width > MAX_LD_WIDTH || width < -MAX_LD_WIDTH) _stprintf(buffer, TEXT("%#e"), rpn->f); else { TCHAR *ptr, *dst; Index: calc/utl_mpfr.c =================================================================== --- calc/utl_mpfr.c (revision 65379) +++ calc/utl_mpfr.c (working copy) @@ -39,7 +39,7 @@ width = 1 + mpfr_get_si(t, MPFR_DEFAULT_RND); mpfr_clear(t); } - if (calc.sci_out == TRUE || width > max_ld_width || width < -max_ld_width) + if (calc.sci_out || width > max_ld_width || width < -max_ld_width) ptr = temp + gmp_sprintf(temp, "%*.*#Fe", 1, max_ld_width, ff); else { ptr = temp + gmp_sprintf(temp, "%#*.*Ff", width, ((max_ld_width-width-1)>=0) ? max_ld_width-width-1 : 0, ff); Index: calc/winmain.c =================================================================== --- calc/winmain.c (revision 65379) +++ calc/winmain.c (working copy) @@ -290,7 +290,7 @@ _stprintf(buf, TEXT("%lu"), calc.layout); WriteProfileString(TEXT("SciCalc"), TEXT("layout"), buf); - WriteProfileString(TEXT("SciCalc"), TEXT("UseSep"), (calc.usesep==TRUE) ? TEXT("1") : TEXT("0")); + WriteProfileString(TEXT("SciCalc"), TEXT("UseSep"), (calc.usesep) ? TEXT("1") : TEXT("0")); } static LRESULT post_key_press(LPARAM lParam, WORD idc) @@ -1107,7 +1107,7 @@ static void run_fe(calc_number_t *number) { - calc.sci_out = ((calc.sci_out == TRUE) ? FALSE : TRUE); + calc.sci_out = ((calc.sci_out) ? FALSE : TRUE); } static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp) Index: charmap/settings.c =================================================================== --- charmap/settings.c (revision 65379) +++ charmap/settings.c (working copy) @@ -91,7 +91,7 @@ RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size); - if(dwAdvanChecked == TRUE) + if(dwAdvanChecked) SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, MF_CHECKED, 0); RegCloseKey(hKey); Index: cmdutils/more/more.c =================================================================== --- cmdutils/more/more.c (revision 65379) +++ cmdutils/more/more.c (working copy) @@ -63,7 +63,7 @@ { ReadConsoleInput (hKeyboard, &ir, 1, &dwRead); if ((ir.EventType == KEY_EVENT) && - (ir.Event.KeyEvent.bKeyDown == TRUE)) + (ir.Event.KeyEvent.bKeyDown)) return; } while (TRUE); Index: mscutils/servman/start.c =================================================================== --- mscutils/servman/start.c (revision 65379) +++ mscutils/servman/start.c (working copy) @@ -41,7 +41,7 @@ } else { - if (bWhiteSpace == TRUE) + if (bWhiteSpace) { dwArgsCount++; bWhiteSpace = FALSE; @@ -72,7 +72,7 @@ } else { - if (bWhiteSpace == TRUE) + if (bWhiteSpace) { lpArgsVector[dwArgsCount] = lpChar; dwArgsCount++; Index: network/arp/arp.c =================================================================== --- network/arp/arp.c (revision 65379) +++ network/arp/arp.c (working copy) @@ -467,7 +467,7 @@ pDelHost->dwIndex = pIpNetTable->table[0].dwIndex; } - if (bFlushTable == TRUE) + if (bFlushTable) { /* delete arp cache */ if (FlushIpNetTable(pDelHost->dwIndex) != NO_ERROR) Index: network/net/cmdAccounts.c =================================================================== --- network/net/cmdAccounts.c (revision 65379) +++ network/net/cmdAccounts.c (working copy) @@ -151,7 +151,7 @@ } } - if (Modified == TRUE) + if (Modified) { Status = NetUserModalsSet(NULL, 0, (LPBYTE)Info0, &ParamErr); if (Status != NERR_Success) Index: network/net/cmdUser.c =================================================================== --- network/net/cmdUser.c (revision 65379) +++ network/net/cmdUser.c (working copy) @@ -612,7 +612,7 @@ } done: - if (bPasswordAllocated == TRUE && lpPassword != NULL) + if (bPasswordAllocated && lpPassword != NULL) HeapFree(GetProcessHeap(), 0, lpPassword); if (!bAdd && !bDelete && pUserInfo != NULL) Index: network/tracert/tracert.c =================================================================== --- network/tracert/tracert.c (revision 65379) +++ network/tracert/tracert.c (working copy) @@ -450,7 +450,7 @@ /* run until we hit either max hops, or find the target */ while ((iHopCount <= pInfo->iMaxHops) && - (bFoundTarget != TRUE)) + (!bFoundTarget)) { USHORT iSeqNum = 0; INT i; @@ -460,7 +460,7 @@ /* run 3 pings for each hop */ for (i = 0; i < 3; i++) { - if (SetTTL(pInfo->icmpSock, iTTL) != TRUE) + if ( !SetTTL( pInfo->icmpSock, iTTL )) { DebugPrint(_T("error in Setup()\n")); return ret; Index: notepad/dialog.c =================================================================== --- notepad/dialog.c (revision 65379) +++ notepad/dialog.c (working copy) @@ -744,8 +744,7 @@ } // Set status bar visible or not accordind the the settings. - if (Globals.bWrapLongLines == TRUE || - Globals.bShowStatusBar == FALSE) + if (Globals.bWrapLongLines || !Globals.bShowStatusBar) { bStatusBarVisible = FALSE; ShowWindow(Globals.hStatusBar, SW_HIDE); @@ -758,7 +757,7 @@ } // Set check state in show status bar item. - if (Globals.bShowStatusBar == TRUE) + if (Globals.bShowStatusBar) { CheckMenuItem(Globals.hMenu, CMD_STATUSBAR, MF_BYCOMMAND | MF_CHECKED); } Index: notepad/main.c =================================================================== --- notepad/main.c (revision 65379) +++ notepad/main.c (working copy) @@ -371,8 +371,7 @@ case WM_SIZE: { - if (Globals.bShowStatusBar == TRUE && - Globals.bWrapLongLines == FALSE) + if (Globals.bShowStatusBar && !Globals.bWrapLongLines) { RECT rcStatusBar; HDWP hdwp; Index: regedit/edit.c =================================================================== --- regedit/edit.c (revision 65379) +++ regedit/edit.c (working copy) @@ -1271,7 +1271,7 @@ { } } - else if (EditBin == TRUE || type == REG_NONE || type == REG_BINARY) + else if (EditBin || type == REG_NONE || type == REG_BINARY) { if(valueDataLen > 0) { Index: sndrec32/sndrec32.cpp =================================================================== --- sndrec32/sndrec32.cpp (revision 65379) +++ sndrec32/sndrec32.cpp (working copy) @@ -534,7 +534,7 @@ case WM_COMMAND: wmId = LOWORD(wParam); - if ((wmId >= 0) && (wmId < 5) && (butdisabled[wmId] == TRUE)) + if ((wmId >= 0) && (wmId < 5) && (butdisabled[wmId])) break; switch (wmId) Index: sndvol32/dialog.c =================================================================== --- sndvol32/dialog.c (revision 65379) +++ sndvol32/dialog.c (working copy) @@ -366,7 +366,7 @@ SetDlgItemTextW(PrefContext->MixerWindow->hWnd, wID, Line->szName); /* query controls */ - if (SndMixerQueryControls(Mixer, &ControlCount, Line, &Control) == TRUE) + if (SndMixerQueryControls(Mixer, &ControlCount, Line, &Control)) { /* now go through all controls and update their states */ for(Index = 0; Index < ControlCount; Index++)