From e6e4056e1e1f444eab7063a1000d99a7e3fe9a8c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 7 Apr 2007 05:42:54 -0700 Subject: [PATCH] quartz: Fix error with operator precedence. --- dlls/quartz/memallocator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index 3cabe12f991..f9c64ac9bb3 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; }