[WIN32SS]

if (BooleanValue == TRUE) -> if (!BooleanValue)
Patch by Love Nystrom
CORE-8799

svn path=/trunk/; revision=65390
This commit is contained in:
Timo Kreuzer 2014-11-13 10:31:45 +00:00
parent 5cd320d592
commit 35b6795c92
16 changed files with 24 additions and 24 deletions

View file

@ -38,7 +38,7 @@ DrvEnableDirectDraw(
{ {
PPDEV ppdev = (PPDEV)dhpdev; PPDEV ppdev = (PPDEV)dhpdev;
if (ppdev->bDDInitialized == TRUE) if (ppdev->bDDInitialized)
{ {
return TRUE; return TRUE;
} }
@ -237,7 +237,7 @@ DrvGetDirectDrawInfo(
{ {
ppdev->pvmList = pvmList; ppdev->pvmList = pvmList;
if ( bDDrawHeap == TRUE) if (bDDrawHeap)
{ {
pvmList->dwFlags = VIDMEM_ISLINEAR ; pvmList->dwFlags = VIDMEM_ISLINEAR ;
pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta; pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta;

View file

@ -110,7 +110,7 @@ IntHideMousePointer(PPDEV ppdev, SURFOBJ *DestSurface)
VOID FASTCALL VOID FASTCALL
IntShowMousePointer(PPDEV ppdev, SURFOBJ *DestSurface) IntShowMousePointer(PPDEV ppdev, SURFOBJ *DestSurface)
{ {
if (ppdev->PointerAttributes.Enable == TRUE) if (ppdev->PointerAttributes.Enable)
{ {
return; return;
} }

View file

@ -38,7 +38,7 @@ DrvEnableDirectDraw(
{ {
PPDEV ppdev = (PPDEV)dhpdev; PPDEV ppdev = (PPDEV)dhpdev;
if (ppdev->bDDInitialized == TRUE) if (ppdev->bDDInitialized)
{ {
return TRUE; return TRUE;
} }
@ -237,7 +237,7 @@ DrvGetDirectDrawInfo(
{ {
ppdev->pvmList = pvmList; ppdev->pvmList = pvmList;
if ( bDDrawHeap == TRUE) if (bDDrawHeap)
{ {
pvmList->dwFlags = VIDMEM_ISLINEAR ; pvmList->dwFlags = VIDMEM_ISLINEAR ;
pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta; pvmList->fpStart = ppdev->ScreenHeight * ppdev->ScreenDelta;

View file

@ -302,7 +302,7 @@ DrvAssertMode(IN DHPDEV DPev,
PPDEV ppdev = (PPDEV)DPev; PPDEV ppdev = (PPDEV)DPev;
ULONG returnedDataLength; ULONG returnedDataLength;
if(Enable==TRUE) if (Enable)
{ {
/* Reenable our graphics mode */ /* Reenable our graphics mode */
if (!InitPointer(ppdev)) if (!InitPointer(ppdev))

View file

@ -560,7 +560,7 @@ void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDe
pb++; pb++;
} }
if (edgePixel == TRUE) if (edgePixel)
{ {
b1 = *pb; b1 = *pb;
if(b1 != trans) vgaPutPixel(x2, j, b1); if(b1 != trans) vgaPutPixel(x2, j, b1);

View file

@ -61,7 +61,7 @@ static __inline VOID addItemFlood(FLOODINFO *info,
{ {
if (RECTL_bPointInRect(DstRect,x,y)) if (RECTL_bPointInRect(DstRect,x,y))
{ {
if (isSurf == TRUE && if (isSurf &&
DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color) DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color)
{ {
return; return;

View file

@ -1837,7 +1837,7 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
{ {
/* Free it */ /* Free it */
Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD); Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
if (Return == TRUE) if (Return)
{ {
pDirectDrawGlobal->hDD = 0; pDirectDrawGlobal->hDD = 0;
} }
@ -1852,7 +1852,7 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
{ {
/* Delete the object */ /* Delete the object */
Return = NtGdiDdDeleteDirectDrawObject(ghDirectDraw); Return = NtGdiDdDeleteDirectDrawObject(ghDirectDraw);
if (Return == TRUE) if (Return)
{ {
ghDirectDraw = 0; ghDirectDraw = 0;
} }

View file

@ -212,7 +212,7 @@ co_UserProcessHotKeys(WORD wVk, BOOL bIsDown)
if (!bIsDown) if (!bIsDown)
{ {
/* WIN and F12 keys are not hardcoded here. See comments on top of this file. */ /* 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); pWnd = ValidateHwndNoErr(InputWindowStation->ShellWindow);
if (pWnd) if (pWnd)

View file

@ -2087,7 +2087,7 @@ NtUserGetMessage(PMSG pMsg,
UserLeave(); UserLeave();
if (Ret == TRUE) if (Ret)
{ {
_SEH2_TRY _SEH2_TRY
{ {

View file

@ -805,7 +805,7 @@ co_MsqDispatchOneSentMessage(PTHREADINFO pti)
*Message->Result = Result; *Message->Result = Result;
} }
if (Message->HasPackedLParam == TRUE) if (Message->HasPackedLParam)
{ {
if (Message->Msg.lParam) if (Message->Msg.lParam)
ExFreePool((PVOID)Message->Msg.lParam); ExFreePool((PVOID)Message->Msg.lParam);
@ -887,7 +887,7 @@ MsqRemoveWindowMessagesFromQueue(PWND Window)
KeSetEvent(SentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); KeSetEvent(SentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE);
} }
if (SentMessage->HasPackedLParam == TRUE) if (SentMessage->HasPackedLParam)
{ {
if (SentMessage->Msg.lParam) if (SentMessage->Msg.lParam)
ExFreePool((PVOID)SentMessage->Msg.lParam); ExFreePool((PVOID)SentMessage->Msg.lParam);
@ -1966,7 +1966,7 @@ MsqCleanupThreadMsgs(PTHREADINFO pti)
KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE);
} }
if (CurrentSentMessage->HasPackedLParam == TRUE) if (CurrentSentMessage->HasPackedLParam)
{ {
if (CurrentSentMessage->Msg.lParam) if (CurrentSentMessage->Msg.lParam)
ExFreePool((PVOID)CurrentSentMessage->Msg.lParam); ExFreePool((PVOID)CurrentSentMessage->Msg.lParam);
@ -1998,7 +1998,7 @@ MsqCleanupThreadMsgs(PTHREADINFO pti)
KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE); KeSetEvent(CurrentSentMessage->CompletionEvent, IO_NO_INCREMENT, FALSE);
} }
if (CurrentSentMessage->HasPackedLParam == TRUE) if (CurrentSentMessage->HasPackedLParam)
{ {
if (CurrentSentMessage->Msg.lParam) if (CurrentSentMessage->Msg.lParam)
ExFreePool((PVOID)CurrentSentMessage->Msg.lParam); ExFreePool((PVOID)CurrentSentMessage->Msg.lParam);

View file

@ -522,7 +522,7 @@ LRESULT WINAPI SwitchWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
return TRUE; return TRUE;
case WM_SHOWWINDOW: case WM_SHOWWINDOW:
if (wParam == TRUE) if (wParam)
{ {
PrepareWindow(); PrepareWindow();
ati = (PALTTABINFO)GetWindowLongPtrW(hWnd, 0); ati = (PALTTABINFO)GetWindowLongPtrW(hWnd, 0);

View file

@ -610,7 +610,7 @@ OpenDesktopW(
GetProcessWindowStation(), GetProcessWindowStation(),
0); 0);
if( fInherit == TRUE ) if( fInherit )
{ {
ObjectAttributes.Attributes |= OBJ_INHERIT; ObjectAttributes.Attributes |= OBJ_INHERIT;
} }

View file

@ -372,7 +372,7 @@ OpenWindowStationW(LPCWSTR lpszWinSta,
hWindowStationsDir, hWindowStationsDir,
0); 0);
if( fInherit == TRUE ) if( fInherit )
{ {
ObjectAttributes.Attributes |= OBJ_INHERIT; ObjectAttributes.Attributes |= OBJ_INHERIT;
} }

View file

@ -1784,7 +1784,7 @@ GuiCopyFromGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer,
static VOID static VOID
Copy(PGUI_CONSOLE_DATA GuiData) Copy(PGUI_CONSOLE_DATA GuiData)
{ {
if (OpenClipboard(GuiData->hWindow) == TRUE) if (OpenClipboard(GuiData->hWindow))
{ {
PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer; PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer;
@ -1814,7 +1814,7 @@ GuiPasteToGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer,
static VOID static VOID
Paste(PGUI_CONSOLE_DATA GuiData) Paste(PGUI_CONSOLE_DATA GuiData)
{ {
if (OpenClipboard(GuiData->hWindow) == TRUE) if (OpenClipboard(GuiData->hWindow))
{ {
PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer; PCONSOLE_SCREEN_BUFFER Buffer = GuiData->ActiveBuffer;

View file

@ -1336,7 +1336,7 @@ VOID GuiCopyFromGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer);
static VOID static VOID
GuiConsoleCopy(PGUI_CONSOLE_DATA GuiData) GuiConsoleCopy(PGUI_CONSOLE_DATA GuiData)
{ {
if (OpenClipboard(GuiData->hWindow) == TRUE) if (OpenClipboard(GuiData->hWindow))
{ {
PCONSOLE Console = GuiData->Console; PCONSOLE Console = GuiData->Console;
PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console); PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console);
@ -1364,7 +1364,7 @@ VOID GuiPasteToGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer);
static VOID static VOID
GuiConsolePaste(PGUI_CONSOLE_DATA GuiData) GuiConsolePaste(PGUI_CONSOLE_DATA GuiData)
{ {
if (OpenClipboard(GuiData->hWindow) == TRUE) if (OpenClipboard(GuiData->hWindow))
{ {
PCONSOLE Console = GuiData->Console; PCONSOLE Console = GuiData->Console;
PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console); PCONSOLE_SCREEN_BUFFER Buffer = ConDrvGetActiveScreenBuffer(Console);

View file

@ -53,7 +53,7 @@ CSR_API(SrvRegisterServicesProcess)
{ {
PUSER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &((PUSER_API_MESSAGE)ApiMessage)->Data.RegisterServicesProcessRequest; PUSER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &((PUSER_API_MESSAGE)ApiMessage)->Data.RegisterServicesProcessRequest;
if (ServicesProcessIdValid == TRUE) if (ServicesProcessIdValid)
{ {
/* Only accept a single call */ /* Only accept a single call */
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;