diff options
author | marha <marha@users.sourceforge.net> | 2010-07-09 18:43:26 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-07-09 18:43:26 +0000 |
commit | a32fb49df0a63bee951f98e7583396c3adb28ad3 (patch) | |
tree | 0454850c954172b17575d561061d99a1d502fcc1 /tools/mhmake/src/commandqueue.h | |
parent | 29c7981777a6fa7d962977d2a7bdce68c116206d (diff) | |
download | vcxsrv-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.h | 18 |
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;
|