quartz: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.
This commit is contained in:
parent
dd843b87b6
commit
56c6f7670b
|
@ -1367,7 +1367,7 @@ error:
|
|||
IFilterGraph2_RemoveFilter(iface, pfilter);
|
||||
IBaseFilter_Release(pfilter);
|
||||
}
|
||||
if (!FAILED(hr)) DebugBreak();
|
||||
if (SUCCEEDED(hr)) DebugBreak();
|
||||
}
|
||||
|
||||
IEnumMoniker_Release(pEnumMoniker);
|
||||
|
@ -2140,7 +2140,7 @@ static HRESULT all_renderers_seek(IFilterGraphImpl *This, fnFoundSeek FoundSeek,
|
|||
IMediaSeeking_Release(seek);
|
||||
if (hr_return != E_NOTIMPL)
|
||||
allnotimpl = FALSE;
|
||||
if (hr_return == S_OK || (FAILED(hr) && hr != E_NOTIMPL && !FAILED(hr_return)))
|
||||
if (hr_return == S_OK || (FAILED(hr) && hr != E_NOTIMPL && SUCCEEDED(hr_return)))
|
||||
hr_return = hr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1297,7 +1297,7 @@ static HRESULT WINAPI FilterMapper_EnumMatchingFilters(
|
|||
NULL,
|
||||
&GUID_NULL);
|
||||
|
||||
if (!SUCCEEDED(hr))
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
while(IEnumMoniker_Next(ppEnumMoniker, 1, &IMon, &nb) == S_OK)
|
||||
|
|
Loading…
Reference in New Issue