mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
qcap: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.
This commit is contained in:
parent
4afe790387
commit
2f6df7c2a5
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue