[PATCH] quartz: Explicitly compare to HRESULT values

Nikolay Sivov nsivov at codeweavers.com
Sat Jan 2 05:04:13 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/quartz/enumfilters.c | 2 +-
 dlls/quartz/filtergraph.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/enumfilters.c b/dlls/quartz/enumfilters.c
index ea2af2a..331991b 100644
--- a/dlls/quartz/enumfilters.c
+++ b/dlls/quartz/enumfilters.c
@@ -185,7 +185,7 @@ static HRESULT WINAPI IEnumFiltersImpl_Reset(IEnumFilters * iface)
 
     This->uIndex = 0;
     hr = IGraphVersion_QueryVersion(This->pVersionSource, &currentVersion);
-    if (!hr)
+    if (hr == S_OK)
         This->Version = currentVersion;
     return S_OK;
 }
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 9f072a8..5b4b080 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1618,7 +1618,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
     /* Try to find a match without reading the file first */
     hr = GetClassMediaFile(NULL, pszFileName, NULL, NULL, &clsid);
 
-    if (!hr)
+    if (hr == S_OK)
         return CreateFilterInstanceAndLoadFile(&clsid, pszFileName, filter);
 
     /* Now create a AyncReader instance, to check for signature bytes in the file */
@@ -1660,7 +1660,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
     hr = GetClassMediaFile(pReader, pszFileName, NULL, NULL, &clsid);
     IAsyncReader_Release(pReader);
 
-    if (!hr)
+    if (hr == S_OK)
     {
         /* Release the AsyncReader filter and create the matching one */
         IBaseFilter_Release(*filter);
-- 
2.6.4




More information about the wine-patches mailing list