quartz: Explicitly compare to HRESULT values.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-02 14:04:13 +03:00 committed by Alexandre Julliard
parent c8e407da3b
commit ed65fc7ced
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

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