Commit 2f6df7c2 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 4afe7903
......@@ -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;
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment