mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
qcap: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.
This commit is contained in:
parent
4afe790387
commit
2f6df7c2a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user