aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/commandqueue.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-07-09 18:43:26 +0000
committermarha <marha@users.sourceforge.net>2010-07-09 18:43:26 +0000
commita32fb49df0a63bee951f98e7583396c3adb28ad3 (patch)
tree0454850c954172b17575d561061d99a1d502fcc1 /tools/mhmake/src/commandqueue.h
parent29c7981777a6fa7d962977d2a7bdce68c116206d (diff)
downloadvcxsrv-a32fb49df0a63bee951f98e7583396c3adb28ad3.tar.gz
vcxsrv-a32fb49df0a63bee951f98e7583396c3adb28ad3.tar.bz2
vcxsrv-a32fb49df0a63bee951f98e7583396c3adb28ad3.zip
Solved crash when compiled with VS2010
Diffstat (limited to 'tools/mhmake/src/commandqueue.h')
-rw-r--r--tools/mhmake/src/commandqueue.h18
1 files changed, 13 insertions, 5 deletions
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<fileinfo> pTarget;
- vector<string>::iterator CurrentCommandIt;
- string Command;
- md5_context md5ctx;
- bool IgnoreError;
+ refptr<fileinfo> pTarget;
+ vector<string>::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<fileinfo> > m_Queue;