Commit 91e59d99 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 1328ec48
...@@ -528,7 +528,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids, ...@@ -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;
} }
/*************************************************************************** /***************************************************************************
......
...@@ -841,7 +841,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device) ...@@ -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;
......
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