mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
strmbase: Move NULL check up a bit (Coverity).
This commit is contained in:
parent
8279e753b8
commit
67ae245a77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user