Index: drivers/displays/framebuf/ddenable.c =================================================================== --- drivers/displays/framebuf/ddenable.c (revision 65379) +++ drivers/displays/framebuf/ddenable.c (working copy) @@ -38,7 +38,7 @@ { PPDEV ppdev = (PPDEV)dhpdev; - if (ppdev->bDDInitialized == TRUE) + if (ppdev->bDDInitialized) { return TRUE; } @@ -237,7 +237,7 @@ { ppdev->pvmList = pvmList; - if ( bDDrawHeap == TRUE) + if ( bDDrawHeap ) { pvmList->dwFlags = VIDMEM_ISLINEAR ; pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta; Index: drivers/displays/framebuf/pointer.c =================================================================== --- drivers/displays/framebuf/pointer.c (revision 65379) +++ drivers/displays/framebuf/pointer.c (working copy) @@ -110,7 +110,7 @@ VOID FASTCALL IntShowMousePointer(PPDEV ppdev, SURFOBJ *DestSurface) { - if (ppdev->PointerAttributes.Enable == TRUE) + if (ppdev->PointerAttributes.Enable) { return; } Index: drivers/displays/framebufacc/ddenable.c =================================================================== --- drivers/displays/framebufacc/ddenable.c (revision 65379) +++ drivers/displays/framebufacc/ddenable.c (working copy) @@ -38,7 +38,7 @@ { PPDEV ppdev = (PPDEV)dhpdev; - if (ppdev->bDDInitialized == TRUE) + if (ppdev->bDDInitialized) { return TRUE; } @@ -237,7 +237,7 @@ { ppdev->pvmList = pvmList; - if ( bDDrawHeap == TRUE) + if ( bDDrawHeap ) { pvmList->dwFlags = VIDMEM_ISLINEAR ; pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta; Index: drivers/displays/vga/main/enable.c =================================================================== --- drivers/displays/vga/main/enable.c (revision 65379) +++ drivers/displays/vga/main/enable.c (working copy) @@ -302,7 +302,7 @@ PPDEV ppdev = (PPDEV)DPev; ULONG returnedDataLength; - if(Enable==TRUE) + if(Enable) { /* Reenable our graphics mode */ if (!InitPointer(ppdev)) Index: drivers/displays/vga/vgavideo/vgavideo.c =================================================================== --- drivers/displays/vga/vgavideo/vgavideo.c (revision 65379) +++ drivers/displays/vga/vgavideo/vgavideo.c (working copy) @@ -560,7 +560,7 @@ pb++; } - if (edgePixel == TRUE) + if (edgePixel) { b1 = *pb; if(b1 != trans) vgaPutPixel(x2, j, b1); Index: drivers/videoprt/interrupt.c =================================================================== --- drivers/videoprt/interrupt.c (revision 65379) +++ drivers/videoprt/interrupt.c (working copy) @@ -135,7 +135,7 @@ DeviceExtension->InterruptLevel); /* Make sure the interrupt was valid */ - ASSERT(InterruptValid == TRUE); + ASSERT(InterruptValid != FALSE); /* Return to caller */ return NO_ERROR; Index: gdi/dib/floodfill.c =================================================================== --- gdi/dib/floodfill.c (revision 65379) +++ gdi/dib/floodfill.c (working copy) @@ -61,7 +61,7 @@ { if (RECTL_bPointInRect(DstRect,x,y)) { - if (isSurf == TRUE && + if (isSurf && DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color) { return; Index: gdi/gdi32/misc/gdientry.c =================================================================== --- gdi/gdi32/misc/gdientry.c (revision 65379) +++ gdi/gdi32/misc/gdientry.c (working copy) @@ -1837,7 +1837,7 @@ { /* Free it */ Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD); - if (Return == TRUE) + if (Return) { pDirectDrawGlobal->hDD = 0; } @@ -1852,7 +1852,7 @@ { /* Delete the object */ Return = NtGdiDdDeleteDirectDrawObject(ghDirectDraw); - if (Return == TRUE) + if (Return) { ghDirectDraw = 0; } Index: gdi/ntgdi/gdipool.c =================================================================== --- gdi/ntgdi/gdipool.c (revision 65379) +++ gdi/ntgdi/gdipool.c (working copy) @@ -262,7 +262,7 @@ ulIndex = cjOffset / pPool->cjAllocSize; /* Mark it as free */ - ASSERT(RtlTestBit(&pSection->bitmap, ulIndex) == TRUE); + ASSERT(RtlTestBit(&pSection->bitmap, ulIndex) != FALSE); RtlClearBit(&pSection->bitmap, ulIndex); /* Decrease allocation count */ Index: user/ntuser/hotkey.c =================================================================== --- user/ntuser/hotkey.c (revision 65379) +++ user/ntuser/hotkey.c (working copy) @@ -212,7 +212,7 @@ if (!bIsDown) { /* WIN and F12 keys are not hardcoded here. See comments on top of this file. */ - if (pHotKey->id == IDHK_WINKEY && bWinHotkeyActive == TRUE) + if (pHotKey->id == IDHK_WINKEY && bWinHotkeyActive) { pWnd = ValidateHwndNoErr(InputWindowStation->ShellWindow); if (pWnd) Index: user/ntuser/message.c =================================================================== --- user/ntuser/message.c (revision 65379) +++ user/ntuser/message.c (working copy) @@ -2087,7 +2087,7 @@ UserLeave(); - if (Ret == TRUE) + if (Ret) { _SEH2_TRY { Index: user/ntuser/msgqueue.c =================================================================== --- user/ntuser/msgqueue.c (revision 65379) +++ user/ntuser/msgqueue.c (working copy) @@ -805,7 +805,7 @@ *Message->Result = Result; } - if (Message->HasPackedLParam == TRUE) + if (Message->HasPackedLParam) { if (Message->Msg.lParam) ExFreePool((PVOID)Message->Msg.lParam); @@ -887,7 +887,7 @@ KeSetEvent(SentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); } - if (SentMessage->HasPackedLParam == TRUE) + if (SentMessage->HasPackedLParam) { if (SentMessage->Msg.lParam) ExFreePool((PVOID)SentMessage->Msg.lParam); @@ -1966,7 +1966,7 @@ KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); } - if (CurrentSentMessage->HasPackedLParam == TRUE) + if (CurrentSentMessage->HasPackedLParam) { if (CurrentSentMessage->Msg.lParam) ExFreePool((PVOID)CurrentSentMessage->Msg.lParam); @@ -1998,7 +1998,7 @@ KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); } - if (CurrentSentMessage->HasPackedLParam == TRUE) + if (CurrentSentMessage->HasPackedLParam) { if (CurrentSentMessage->Msg.lParam) ExFreePool((PVOID)CurrentSentMessage->Msg.lParam); Index: user/ntuser/window.c =================================================================== --- user/ntuser/window.c (revision 65379) +++ user/ntuser/window.c (working copy) @@ -654,7 +654,7 @@ PCLS Class; WNDPROC gcpd, Ret = 0; - ASSERT(UserIsEnteredExclusive() == TRUE); + ASSERT(UserIsEnteredExclusive() != FALSE); Class = pWnd->pcls; Index: user/user32/controls/appswitch.c =================================================================== --- user/user32/controls/appswitch.c (revision 65379) +++ user/user32/controls/appswitch.c (working copy) @@ -522,7 +522,7 @@ return TRUE; case WM_SHOWWINDOW: - if (wParam == TRUE) + if (wParam) { PrepareWindow(); ati = (PALTTABINFO)GetWindowLongPtrW(hWnd, 0); Index: user/user32/misc/desktop.c =================================================================== --- user/user32/misc/desktop.c (revision 65379) +++ user/user32/misc/desktop.c (working copy) @@ -610,7 +610,7 @@ GetProcessWindowStation(), 0); - if( fInherit == TRUE ) + if( fInherit ) { ObjectAttributes.Attributes |= OBJ_INHERIT; } Index: user/user32/misc/winsta.c =================================================================== --- user/user32/misc/winsta.c (revision 65379) +++ user/user32/misc/winsta.c (working copy) @@ -372,7 +372,7 @@ hWindowStationsDir, 0); - if( fInherit == TRUE ) + if( fInherit ) { ObjectAttributes.Attributes |= OBJ_INHERIT; } Index: user/winsrv/consrv/frontends/gui/conwnd.c =================================================================== --- user/winsrv/consrv/frontends/gui/conwnd.c (revision 65379) +++ user/winsrv/consrv/frontends/gui/conwnd.c (working copy) @@ -1784,7 +1784,7 @@ static VOID Copy(PGUI_CONSOLE_DATA GuiData) { - if (OpenClipboard(GuiData->hWindow) == TRUE) + if (OpenClipboard(GuiData->hWindow)) { PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer; @@ -1814,7 +1814,7 @@ static VOID Paste(PGUI_CONSOLE_DATA GuiData) { - if (OpenClipboard(GuiData->hWindow) == TRUE) + if (OpenClipboard(GuiData->hWindow)) { PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer; Index: user/winsrv/consrv_new/frontends/gui/guiterm.c =================================================================== --- user/winsrv/consrv_new/frontends/gui/guiterm.c (revision 65379) +++ user/winsrv/consrv_new/frontends/gui/guiterm.c (working copy) @@ -1336,7 +1336,7 @@ static VOID GuiConsoleCopy(PGUI_CONSOLE_DATA GuiData) { - if (OpenClipboard(GuiData->hWindow) == TRUE) + if (OpenClipboard(GuiData->hWindow)) { PCONSOLE Console = GuiData->Console; PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console); @@ -1364,7 +1364,7 @@ static VOID GuiConsolePaste(PGUI_CONSOLE_DATA GuiData) { - if (OpenClipboard(GuiData->hWindow) == TRUE) + if (OpenClipboard(GuiData->hWindow)) { PCONSOLE Console = GuiData->Console; PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console); Index: user/winsrv/usersrv/register.c =================================================================== --- user/winsrv/usersrv/register.c (revision 65379) +++ user/winsrv/usersrv/register.c (working copy) @@ -53,7 +53,7 @@ { PUSER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &((PUSER_API_MESSAGE)ApiMessage)->Data.RegisterServicesProcessRequest; - if (ServicesProcessIdValid == TRUE) + if (ServicesProcessIdValid) { /* Only accept a single call */ return STATUS_INVALID_PARAMETER;