Nikolay Sivov : quartz: Explicitly compare to HRESULT values.

Alexandre Julliard julliard at wine.codeweavers.com
Sun Jan 3 14:24:16 CST 2016


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Jan  2 14:04:13 2016 +0300

quartz: Explicitly compare to HRESULT values.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list