[quartz] Fixed typo (Coverity CID-770)
Paul Vriens
Paul.Vriens at xs4all.nl
Wed Jun 28 12:49:48 CDT 2006
Hi,
fixed an obvious typo. The test was meant to check for 0 or 1 but
instead returns E_INVALIDARG for every value of lNoNotifyFlags.
Changelog
Fixed typo
Cheers,
Paul.
---
dlls/quartz/filtergraph.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index dbb4048..bbf22e6 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -3979,7 +3979,7 @@ static HRESULT WINAPI MediaEvent_SetNoti
TRACE("(%p/%p)->(%ld)\n", This, iface, lNoNotifyFlags);
- if ((lNoNotifyFlags != 0) || (lNoNotifyFlags != 1))
+ if ((lNoNotifyFlags != 0) && (lNoNotifyFlags != 1))
return E_INVALIDARG;
This->notif.disabled = lNoNotifyFlags;
--
1.4.0
More information about the wine-patches
mailing list