Index: d3d9/adapter.c =================================================================== --- d3d9/adapter.c (revision 65379) +++ d3d9/adapter.c (working copy) @@ -158,7 +158,7 @@ AdapterIndex = 0; FoundDisplayDevice = FALSE; - while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0) == TRUE) + while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0)) { if (_stricmp(lpszDeviceName, DisplayDevice.DeviceName) == 0) { @@ -176,7 +176,7 @@ lstrcpynA(pIdentifier->Description, DisplayDevice.DeviceString, MAX_DEVICE_IDENTIFIER_STRING); lstrcpynA(pIdentifier->DeviceName, DisplayDevice.DeviceName, CCHDEVICENAME); - if (GetDriverName(&DisplayDevice, pIdentifier) == TRUE) + if (GetDriverName(&DisplayDevice, pIdentifier)) GetDriverVersion(&DisplayDevice, pIdentifier); GetDeviceId(DisplayDevice.DeviceID, pIdentifier); Index: d3d9/d3d9_create.c =================================================================== --- d3d9/d3d9_create.c (revision 65379) +++ d3d9/d3d9_create.c (working copy) @@ -190,7 +190,7 @@ D3D9_PrimaryDeviceName[0] = '\0'; AdapterIndex = 0; - while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0) == TRUE && + while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0) && pDirect3D9->NumDisplayAdapters < D3D9_INT_MAX_NUM_ADAPTERS) { if ((DisplayDevice.StateFlags & (DISPLAY_DEVICE_DISCONNECT | DISPLAY_DEVICE_MIRRORING_DRIVER)) == 0 && @@ -209,7 +209,7 @@ } AdapterIndex = 0; - while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0) == TRUE && + while (EnumDisplayDevicesA(NULL, AdapterIndex, &DisplayDevice, 0) && pDirect3D9->NumDisplayAdapters < D3D9_INT_MAX_NUM_ADAPTERS) { if ((DisplayDevice.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) != 0 && Index: d3d9/d3d9_impl.c =================================================================== --- d3d9/d3d9_impl.c (revision 65379) +++ d3d9/d3d9_impl.c (working copy) @@ -413,7 +413,7 @@ } if (BackBufferFormat == D3DFMT_UNKNOWN && - Windowed == TRUE) + Windowed) { BackBufferFormat = DisplayFormat; } @@ -595,7 +595,7 @@ } pDriverCaps = &This->DisplayAdapters[Adapter].DriverCaps; - if ((Usage & D3DUSAGE_DYNAMIC) != 0 && bIsTextureRType == TRUE) + if ((Usage & D3DUSAGE_DYNAMIC) != 0 && bIsTextureRType) { if ((pDriverCaps->DriverCaps9.Caps2 & D3DCAPS2_DYNAMICTEXTURES) == 0) { Index: ddraw/Ddraw/ddraw_displaymode.c =================================================================== --- ddraw/Ddraw/ddraw_displaymode.c (revision 65379) +++ ddraw/Ddraw/ddraw_displaymode.c (working copy) @@ -42,7 +42,7 @@ DevMode.dmSize = sizeof(DEVMODE); - while (EnumDisplaySettingsEx(NULL, iMode, &DevMode, 0) == TRUE) + while (EnumDisplaySettingsEx(NULL, iMode, &DevMode, 0)) { DDSURFACEDESC SurfaceDesc; @@ -140,7 +140,7 @@ DevMode.dmSize = sizeof(DEVMODE); - while (EnumDisplaySettingsEx(NULL, iMode, &DevMode, 0) == TRUE) + while (EnumDisplaySettingsEx(NULL, iMode, &DevMode, 0)) { DDSURFACEDESC2 SurfaceDesc; Index: ddraw/Ddraw/GetDeviceIdentifier.c =================================================================== --- ddraw/Ddraw/GetDeviceIdentifier.c (revision 65379) +++ ddraw/Ddraw/GetDeviceIdentifier.c (working copy) @@ -112,7 +112,7 @@ } } - if (found == TRUE) + if (found) { /* we found our driver now we start setup it */ if (!_strnicmp(DisplayDeviceA.DeviceKey,"\\REGISTRY\\Machine\\",18)) Index: dsound_new/directsound.c =================================================================== --- dsound_new/directsound.c (revision 65379) +++ dsound_new/directsound.c (working copy) @@ -34,7 +34,7 @@ LPCDirectSoundImpl This = (LPCDirectSoundImpl)CONTAINING_RECORD(iface, CDirectSoundImpl, lpVtbl); if ((IsEqualIID(riid, &IID_IDirectSound) && This->bDirectSound8 == FALSE) || - (IsEqualIID(riid, &IID_IDirectSound8) && This->bDirectSound8 == TRUE) || + (IsEqualIID(riid, &IID_IDirectSound8) && This->bDirectSound8 != FALSE) || (IsEqualIID(riid, &IID_IUnknown))) { *ppobj = (LPVOID)&This->lpVtbl; Index: wine/dsound/mixer.c =================================================================== --- wine/dsound/mixer.c (revision 65379) +++ wine/dsound/mixer.c (working copy) @@ -945,7 +945,7 @@ } /* if device was stopping, its for sure stopped when all buffers have stopped */ - else if((all_stopped == TRUE) && (device->state == STATE_STOPPING)){ + else if((all_stopped) && (device->state == STATE_STOPPING)){ TRACE("All buffers have stopped. Stopping primary buffer\n"); device->state = STATE_STOPPED;