Commit d94eaa3b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winmm: Avoid TRUE FALSE conditional expressions.

parent e6ad25ff
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment