winmm: Avoid TRUE FALSE conditional expressions.
This commit is contained in:
parent
e6ad25fffe
commit
d94eaa3b20
|
@ -481,7 +481,7 @@ static BOOL MMIO_Destroy(LPWINE_MMIO wm)
|
|||
wm = NULL;
|
||||
}
|
||||
LeaveCriticalSection(&WINMM_cs);
|
||||
return wm ? FALSE : TRUE;
|
||||
return !wm;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
|
|
|
@ -525,7 +525,7 @@ static BOOL MULTIMEDIA_PlaySound(const void* pszSound, HMODULE hmod, DWORD fdwSo
|
|||
if (fdwSound & SND_ASYNC)
|
||||
{
|
||||
HANDLE handle;
|
||||
wps->bLoop = (fdwSound & SND_LOOP) ? TRUE : FALSE;
|
||||
wps->bLoop = (fdwSound & SND_LOOP) != 0;
|
||||
if ((handle = CreateThread(NULL, 0, proc_PlaySound, wps, 0, NULL)) != 0) {
|
||||
SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL);
|
||||
CloseHandle(handle);
|
||||
|
|
|
@ -605,7 +605,7 @@ static void wave_out_test_deviceOut(int device, double duration,
|
|||
WORD nChannels = pwfx->nChannels;
|
||||
WORD wBitsPerSample = pwfx->wBitsPerSample;
|
||||
DWORD nSamplesPerSec = pwfx->nSamplesPerSec;
|
||||
BOOL has_volume = pcaps->dwSupport & WAVECAPS_VOLUME ? TRUE : FALSE;
|
||||
BOOL has_volume = (pcaps->dwSupport & WAVECAPS_VOLUME) != 0;
|
||||
double paused = 0.0;
|
||||
DWORD_PTR callback = 0;
|
||||
DWORD_PTR callback_instance = 0;
|
||||
|
|
|
@ -1778,7 +1778,7 @@ static LRESULT WINMM_Reset(HWAVE hwave)
|
|||
IAudioClient_Reset(device->client);
|
||||
|
||||
cb_info = device->cb_info;
|
||||
is_out = device->render ? TRUE : FALSE;
|
||||
is_out = device->render != NULL;
|
||||
|
||||
LeaveCriticalSection(&device->lock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue