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

This commit is contained in:
Michael Stefaniuc 2008-10-08 01:36:01 +02:00 committed by Alexandre Julliard
parent 4afe790387
commit 2f6df7c2a5
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ static HRESULT WINAPI DSCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pOuter
if (!punk)
{
/* No object created, update error if it isn't done already and return */
if (!FAILED(hres))
if (SUCCEEDED(hres))
hres = E_OUTOFMEMORY;
return hres;
}

View File

@ -115,7 +115,7 @@ IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr)
pVfwCapture->csFilter.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": VfwCapture.csFilter");
hr = VfwPin_Construct((IBaseFilter *)&pVfwCapture->lpVtbl,
&pVfwCapture->csFilter, &pVfwCapture->pOutputPin);
if (!SUCCEEDED(hr))
if (FAILED(hr))
{
CoTaskMemFree(pVfwCapture);
return NULL;