Commit 67ae245a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 8279e753
......@@ -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);
......
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