quartz: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.

This commit is contained in:
Michael Stefaniuc 2008-10-08 01:33:43 +02:00 committed by Alexandre Julliard
parent dd843b87b6
commit 56c6f7670b
2 changed files with 3 additions and 3 deletions

View File

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

View File

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