From a32fb49df0a63bee951f98e7583396c3adb28ad3 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 9 Jul 2010 18:43:26 +0000 Subject: Solved crash when compiled with VS2010 --- tools/mhmake/src/commandqueue.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'tools/mhmake/src/commandqueue.h') diff --git a/tools/mhmake/src/commandqueue.h b/tools/mhmake/src/commandqueue.h index 84878067e..3642d2f1d 100644 --- a/tools/mhmake/src/commandqueue.h +++ b/tools/mhmake/src/commandqueue.h @@ -33,11 +33,19 @@ class commandqueue { struct activeentry { - refptr pTarget; - vector::iterator CurrentCommandIt; - string Command; - md5_context md5ctx; - bool IgnoreError; + refptr pTarget; + vector::const_iterator CurrentCommandIt; + string Command; + md5_context md5ctx; + bool IgnoreError; + void clear() + { + pTarget=NULL; + Command.clear(); + #ifdef _DEBUG + md5ctx.Data.clear(); + #endif + } }; private: queue< refptr > m_Queue; -- cgit v1.2.3