From 8b1cfbb5f5cc8ebad87d0a4d7d5a0c698fabb3f5 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 11 Jan 2013 12:11:11 +0000 Subject: [PATCH] --- MSITSCAOp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MSITSCAOp.h b/MSITSCAOp.h index c444400..c103ef8 100644 --- a/MSITSCAOp.h +++ b/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;