strmbase: Move NULL check up a bit (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-26 16:32:39 +02:00 committed by Alexandre Julliard
parent 8279e753b8
commit 67ae245a77

View File

@ -222,11 +222,12 @@ HRESULT TransformFilter_Construct(const IBaseFilterVtbl *pVtbl, LONG filter_size
assert(filter_size >= sizeof(TransformFilter));
pTf = CoTaskMemAlloc(filter_size);
ZeroMemory(pTf, filter_size);
if (!pTf)
return E_OUTOFMEMORY;
ZeroMemory(pTf, filter_size);
if (SUCCEEDED(TransformFilter_Init(pVtbl, pClsid, pFuncsTable, pTf)))
{
*ppTransformFilter = (IBaseFilter*)(&pTf->filter.lpVtbl);