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:
parent
c8e407da3b
commit
ed65fc7ced
|
@ -185,7 +185,7 @@ static HRESULT WINAPI IEnumFiltersImpl_Reset(IEnumFilters * iface)
|
||||||
|
|
||||||
This->uIndex = 0;
|
This->uIndex = 0;
|
||||||
hr = IGraphVersion_QueryVersion(This->pVersionSource, ¤tVersion);
|
hr = IGraphVersion_QueryVersion(This->pVersionSource, ¤tVersion);
|
||||||
if (!hr)
|
if (hr == S_OK)
|
||||||
This->Version = currentVersion;
|
This->Version = currentVersion;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1618,7 +1618,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
|
||||||
/* Try to find a match without reading the file first */
|
/* Try to find a match without reading the file first */
|
||||||
hr = GetClassMediaFile(NULL, pszFileName, NULL, NULL, &clsid);
|
hr = GetClassMediaFile(NULL, pszFileName, NULL, NULL, &clsid);
|
||||||
|
|
||||||
if (!hr)
|
if (hr == S_OK)
|
||||||
return CreateFilterInstanceAndLoadFile(&clsid, pszFileName, filter);
|
return CreateFilterInstanceAndLoadFile(&clsid, pszFileName, filter);
|
||||||
|
|
||||||
/* Now create a AyncReader instance, to check for signature bytes in the file */
|
/* 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);
|
hr = GetClassMediaFile(pReader, pszFileName, NULL, NULL, &clsid);
|
||||||
IAsyncReader_Release(pReader);
|
IAsyncReader_Release(pReader);
|
||||||
|
|
||||||
if (!hr)
|
if (hr == S_OK)
|
||||||
{
|
{
|
||||||
/* Release the AsyncReader filter and create the matching one */
|
/* Release the AsyncReader filter and create the matching one */
|
||||||
IBaseFilter_Release(*filter);
|
IBaseFilter_Release(*filter);
|
||||||
|
|
Loading…
Reference in New Issue