diff --git a/MSICALib/MSITSCAOp.h b/MSICALib/MSITSCAOp.h index c444400..c103ef8 100644 --- a/MSICALib/MSITSCAOp.h +++ b/MSICALib/MSITSCAOp.h @@ -533,7 +533,7 @@ template inline static HRESULT CMSITSCAOpList::Save(CAtlFile & assert(p); HRESULT hr; const T *pp = dynamic_cast(p); - assert(pp); + if (!pp) return E_UNEXPECTED; hr = f << (int)ID; if (FAILED(hr)) return hr;