mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 16:57:26 +00:00
dsound: Avoid comparing BOOL variables with TRUE (PVS-Studio).
This commit is contained in:
parent
1328ec4854
commit
91e59d99f9
@ -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;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user