diff --git a/lib/DxilContainer/DxcContainerBuilder.cpp b/lib/DxilContainer/DxcContainerBuilder.cpp index 43768ba857..20de70a3ea 100644 --- a/lib/DxilContainer/DxcContainerBuilder.cpp +++ b/lib/DxilContainer/DxcContainerBuilder.cpp @@ -105,7 +105,7 @@ HRESULT STDMETHODCALLTYPE DxcContainerBuilder::RemovePart(UINT32 fourCC) { HRESULT STDMETHODCALLTYPE DxcContainerBuilder::SerializeContainer(IDxcOperationResult **ppResult) { DxcThreadMalloc TM(m_pMalloc); - if (ppResult == nullptr || *ppResult == nullptr) + if (ppResult == nullptr) return E_INVALIDARG; try {