mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:46:13 +00:00
[WIN32SS]
if (BooleanValue == TRUE) -> if (!BooleanValue) Patch by Love Nystrom CORE-8799 svn path=/trunk/; revision=65390
This commit is contained in:
parent
5cd320d592
commit
35b6795c92
16 changed files with 24 additions and 24 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -2087,7 +2087,7 @@ NtUserGetMessage(PMSG pMsg,
|
|||
|
||||
UserLeave();
|
||||
|
||||
if (Ret == TRUE)
|
||||
if (Ret)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -610,7 +610,7 @@ OpenDesktopW(
|
|||
GetProcessWindowStation(),
|
||||
0);
|
||||
|
||||
if( fInherit == TRUE )
|
||||
if( fInherit )
|
||||
{
|
||||
ObjectAttributes.Attributes |= OBJ_INHERIT;
|
||||
}
|
||||
|
|
|
@ -372,7 +372,7 @@ OpenWindowStationW(LPCWSTR lpszWinSta,
|
|||
hWindowStationsDir,
|
||||
0);
|
||||
|
||||
if( fInherit == TRUE )
|
||||
if( fInherit )
|
||||
{
|
||||
ObjectAttributes.Attributes |= OBJ_INHERIT;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue