Module: wine Branch: master Commit: e6e4056e1e1f444eab7063a1000d99a7e3fe9a8c URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6e4056e1e1f444eab7063a100... Author: Chris Robinson <chris.kcat(a)gmail.com> Date: Sat Apr 7 05:42:54 2007 -0700 quartz: Fix error with operator precedence. --- dlls/quartz/memallocator.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index 3cabe12..f9c64ac 100644 --- a/dlls/quartz/memallocator.c +++ b/dlls/quartz/memallocator.c @@ -683,7 +683,10 @@ static HRESULT WINAPI StdMediaSample2_SetDiscontinuity(IMediaSample2 * iface, BO TRACE("(%s)\n", bIsDiscontinuity ? "TRUE" : "FALSE"); - This->props.dwSampleFlags = (This->props.dwSampleFlags & ~AM_SAMPLE_DATADISCONTINUITY) | bIsDiscontinuity ? AM_SAMPLE_DATADISCONTINUITY : 0; + if (bIsDiscontinuity) + This->props.dwSampleFlags |= AM_SAMPLE_DATADISCONTINUITY; + else + This->props.dwSampleFlags &= ~AM_SAMPLE_DATADISCONTINUITY; return S_OK; }