dsound: Avoid comparing BOOL variables with TRUE (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-03-09 10:27:08 +01:00 committed by Alexandre Julliard
parent 1328ec4854
commit 91e59d99f9
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
release_mmdevenum(devenum, init_hr); release_mmdevenum(devenum, init_hr);
return (keep_going == TRUE) ? S_OK : S_FALSE; return keep_going ? S_OK : S_FALSE;
} }
/*************************************************************************** /***************************************************************************

View File

@ -841,7 +841,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device)
} }
/* if device was stopping, its for sure stopped when all buffers have stopped */ /* 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"); TRACE("All buffers have stopped. Stopping primary buffer\n");
device->state = STATE_STOPPED; device->state = STATE_STOPPED;