Maarten Lankhorst : quartz: Only enumerate renderers if bRender is set in filtermapper.

Alexandre Julliard julliard at winehq.org
Tue Jun 24 06:44:12 CDT 2008


Module: wine
Branch: master
Commit: b157969d49bd81d23b542b19d55a8c1f8bd004d8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b157969d49bd81d23b542b19d55a8c1f8bd004d8

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Mon Jun 16 17:27:09 2008 -0700

quartz: Only enumerate renderers if bRender is set in filtermapper.

---

 dlls/quartz/filtermapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
index eeba0b1..b54ccea 100644
--- a/dlls/quartz/filtermapper.c
+++ b/dlls/quartz/filtermapper.c
@@ -1071,7 +1071,7 @@ static HRESULT WINAPI FilterMapper2_EnumMatchingFilters(
                             const REGFILTERPINS2 * rfp2 = rf2.u.s1.rgPins2 + i;
 
                             bInputMatch = bInputMatch || (!(rfp2->dwFlags & REG_PINFLAG_B_OUTPUT) &&
-                                (!bRender || (rfp2->dwFlags & REG_PINFLAG_B_RENDERER)) &&
+                                (!bRender == !(rfp2->dwFlags & REG_PINFLAG_B_RENDERER)) &&
                                 MatchTypes(bExactMatch, rfp2->nMediaTypes, rfp2->lpMediaType, cInputTypes, pInputTypes));
                             bOutputMatch = bOutputMatch || ((rfp2->dwFlags & REG_PINFLAG_B_OUTPUT) &&
                                 MatchTypes(bExactMatch, rfp2->nMediaTypes, rfp2->lpMediaType, cOutputTypes, pOutputTypes));




More information about the wine-cvs mailing list