From 91e59d99f93907b464ae3d8d16547868476557af Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 9 Mar 2015 10:27:08 +0100 Subject: [PATCH] dsound: Avoid comparing BOOL variables with TRUE (PVS-Studio). --- dlls/dsound/dsound_main.c | 2 +- dlls/dsound/mixer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 0e3a3132084..013060789b3 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -528,7 +528,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids, release_mmdevenum(devenum, init_hr); - return (keep_going == TRUE) ? S_OK : S_FALSE; + return keep_going ? S_OK : S_FALSE; } /*************************************************************************** diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index b367086139d..973a65e60f0 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -841,7 +841,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device) } /* 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;