dsound: Avoid comparing BOOL variables with TRUE (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Mon Mar 9 04:27:08 CDT 2015
---
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 0e3a313..0130607 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 b367086..973a65e 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;
--
1.9.3
More information about the wine-patches
mailing list