Module: wine Branch: master Commit: b18bc659d63e32c9d14fffe004416beab73293d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b18bc659d63e32c9d14fffe004...
Author: Michael Stefaniuc mstefani@redhat.de Date: Mon Aug 13 11:43:59 2012 +0200
dsound: Avoid a TRUE:FALSE conditional expression.
---
dlls/dsound/buffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index caf1f86..cf4d2ec 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -141,7 +141,7 @@ static inline IDirectSoundBufferImpl *impl_from_IDirectSoundBuffer8(IDirectSound
static inline BOOL is_primary_buffer(IDirectSoundBufferImpl *This) { - return This->dsbd.dwFlags & DSBCAPS_PRIMARYBUFFER ? TRUE : FALSE; + return (This->dsbd.dwFlags & DSBCAPS_PRIMARYBUFFER) != 0; }
static HRESULT WINAPI IDirectSoundBufferImpl_SetFormat(IDirectSoundBuffer8 *iface,