[WIN32SS]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 13 Nov 2014 10:31:45 +0000 (10:31 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 13 Nov 2014 10:31:45 +0000 (10:31 +0000)
if (BooleanValue == TRUE) -> if (!BooleanValue)
Patch by Love Nystrom
CORE-8799

svn path=/trunk/; revision=65390

16 files changed:
reactos/win32ss/drivers/displays/framebuf/ddenable.c
reactos/win32ss/drivers/displays/framebuf/pointer.c
reactos/win32ss/drivers/displays/framebufacc/ddenable.c
reactos/win32ss/drivers/displays/vga/main/enable.c
reactos/win32ss/drivers/displays/vga/vgavideo/vgavideo.c
reactos/win32ss/gdi/dib/floodfill.c
reactos/win32ss/gdi/gdi32/misc/gdientry.c
reactos/win32ss/user/ntuser/hotkey.c
reactos/win32ss/user/ntuser/message.c
reactos/win32ss/user/ntuser/msgqueue.c
reactos/win32ss/user/user32/controls/appswitch.c
reactos/win32ss/user/user32/misc/desktop.c
reactos/win32ss/user/user32/misc/winsta.c
reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
reactos/win32ss/user/winsrv/consrv_new/frontends/gui/guiterm.c
reactos/win32ss/user/winsrv/usersrv/register.c

index 964dd24..e2585fc 100644 (file)
@@ -38,7 +38,7 @@ DrvEnableDirectDraw(
 {
         PPDEV ppdev = (PPDEV)dhpdev;
 
-        if (ppdev->bDDInitialized == TRUE)
+        if (ppdev->bDDInitialized)
         {
                 return TRUE;
         }
@@ -237,7 +237,7 @@ DrvGetDirectDrawInfo(
        {
                ppdev->pvmList = pvmList;
 
-               if ( bDDrawHeap == TRUE)
+               if (bDDrawHeap)
                {
                        pvmList->dwFlags        = VIDMEM_ISLINEAR ;
             pvmList->fpStart        = ppdev->ScreenHeight * ppdev->ScreenDelta;
index b1bfce5..e3a6ed6 100644 (file)
@@ -110,7 +110,7 @@ IntHideMousePointer(PPDEV ppdev, SURFOBJ *DestSurface)
 VOID FASTCALL
 IntShowMousePointer(PPDEV ppdev, SURFOBJ *DestSurface)
 {
-   if (ppdev->PointerAttributes.Enable == TRUE)
+   if (ppdev->PointerAttributes.Enable)
    {
       return;
    }
index 5b93b91..9b352a2 100644 (file)
@@ -38,7 +38,7 @@ DrvEnableDirectDraw(
 {
         PPDEV ppdev = (PPDEV)dhpdev;
 
-        if (ppdev->bDDInitialized == TRUE)
+        if (ppdev->bDDInitialized)
         {
                 return TRUE;
         }
@@ -237,7 +237,7 @@ DrvGetDirectDrawInfo(
        {
                ppdev->pvmList = pvmList;
 
-               if ( bDDrawHeap == TRUE)
+               if (bDDrawHeap)
                {
                        pvmList->dwFlags        = VIDMEM_ISLINEAR ;
             pvmList->fpStart        = ppdev->ScreenHeight * ppdev->ScreenDelta;
index 80d032c..eb17d5d 100644 (file)
@@ -302,7 +302,7 @@ DrvAssertMode(IN DHPDEV DPev,
     PPDEV ppdev = (PPDEV)DPev;
     ULONG returnedDataLength;
 
-    if(Enable==TRUE)
+    if (Enable)
     {
         /* Reenable our graphics mode */
         if (!InitPointer(ppdev))
index 492761c..29ce0a7 100644 (file)
@@ -560,7 +560,7 @@ void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDe
             pb++;
         }
 
-        if (edgePixel == TRUE)
+        if (edgePixel)
         {
             b1 = *pb;
             if(b1 != trans) vgaPutPixel(x2, j, b1);
index a24ade7..13a0fed 100644 (file)
@@ -61,7 +61,7 @@ static __inline VOID addItemFlood(FLOODINFO *info,
 {
   if (RECTL_bPointInRect(DstRect,x,y))
   {
-    if (isSurf == TRUE && 
+    if (isSurf &&
       DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color)
     {
       return;
index 8f37312..eb933df 100644 (file)
@@ -1837,7 +1837,7 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
     {
         /* Free it */
         Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
-        if (Return == TRUE)
+        if (Return)
         {
             pDirectDrawGlobal->hDD = 0;
         }
@@ -1852,7 +1852,7 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
         {
             /* Delete the object */
             Return = NtGdiDdDeleteDirectDrawObject(ghDirectDraw);
-            if (Return == TRUE)
+            if (Return)
             {
                 ghDirectDraw = 0;
             }
index a2da130..2c89086 100644 (file)
@@ -212,7 +212,7 @@ co_UserProcessHotKeys(WORD wVk, BOOL bIsDown)
         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 eb1e127..1df412b 100644 (file)
@@ -2087,7 +2087,7 @@ NtUserGetMessage(PMSG pMsg,
 
     UserLeave();
 
-    if (Ret == TRUE)
+    if (Ret)
     {
         _SEH2_TRY
         {
index ea922da..e82ca12 100644 (file)
@@ -805,7 +805,7 @@ co_MsqDispatchOneSentMessage(PTHREADINFO pti)
       *Message->Result = Result;
    }
 
-   if (Message->HasPackedLParam == TRUE)
+   if (Message->HasPackedLParam)
    {
       if (Message->Msg.lParam)
          ExFreePool((PVOID)Message->Msg.lParam);
@@ -887,7 +887,7 @@ MsqRemoveWindowMessagesFromQueue(PWND Window)
             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 @@ MsqCleanupThreadMsgs(PTHREADINFO pti)
          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 @@ MsqCleanupThreadMsgs(PTHREADINFO pti)
          KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE);
       }
 
-      if (CurrentSentMessage->HasPackedLParam == TRUE)
+      if (CurrentSentMessage->HasPackedLParam)
       {
          if (CurrentSentMessage->Msg.lParam)
             ExFreePool((PVOID)CurrentSentMessage->Msg.lParam);
index ab28959..3bda965 100644 (file)
@@ -522,7 +522,7 @@ LRESULT WINAPI SwitchWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
          return TRUE;
 
       case WM_SHOWWINDOW:
-         if (wParam == TRUE)
+         if (wParam)
          {
             PrepareWindow();
             ati = (PALTTABINFO)GetWindowLongPtrW(hWnd, 0);
index ae10e8c..50702a3 100644 (file)
@@ -610,7 +610,7 @@ OpenDesktopW(
                              GetProcessWindowStation(),
                              0);
 
-  if( fInherit == TRUE )
+  if( fInherit )
   {
       ObjectAttributes.Attributes |= OBJ_INHERIT;
   }
index ad7768d..0f70e80 100644 (file)
@@ -372,7 +372,7 @@ OpenWindowStationW(LPCWSTR lpszWinSta,
                              hWindowStationsDir,
                              0);
 
-  if( fInherit == TRUE )
+  if( fInherit )
   {
       ObjectAttributes.Attributes |= OBJ_INHERIT;
   }
index 0eae030..4e1519a 100644 (file)
@@ -1784,7 +1784,7 @@ GuiCopyFromGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer,
 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 @@ GuiPasteToGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer,
 static VOID
 Paste(PGUI_CONSOLE_DATA GuiData)
 {
-    if (OpenClipboard(GuiData->hWindow) == TRUE)
+    if (OpenClipboard(GuiData->hWindow))
     {
         PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer;
 
index a974e9b..e4d3d79 100644 (file)
@@ -1336,7 +1336,7 @@ VOID GuiCopyFromGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer);
 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 @@ VOID GuiPasteToGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer);
 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 5322075..e1a7154 100644 (file)
@@ -53,7 +53,7 @@ CSR_API(SrvRegisterServicesProcess)
 {
     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;