From a5d21e612b2be797249bd8b1a1da90d1a8449665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 8 Nov 2010 00:31:40 +0100 Subject: [PATCH] Fixes, some messing around with the invalidation code --- data/Memory-ng.xml | 10 +++++++--- library/VersionInfoFactory.cpp | 8 ++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/data/Memory-ng.xml b/data/Memory-ng.xml index 48c9ce60b..b2e9f11b7 100644 --- a/data/Memory-ng.xml +++ b/data/Memory-ng.xml @@ -2226,12 +2226,16 @@ - + + + + + + -
-
+
diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp index 0f99713e4..686a426e4 100644 --- a/library/VersionInfoFactory.cpp +++ b/library/VersionInfoFactory.cpp @@ -280,6 +280,8 @@ void VersionInfoFactory::ParseOffsets(TiXmlElement * parent, VersionInfo* target } else if(type == "address") { + if(child_inval == NOT_SET) + child_inval = IS_VALID; if(initial) { currentGroup->createAddress(cstr_name); @@ -295,6 +297,8 @@ void VersionInfoFactory::ParseOffsets(TiXmlElement * parent, VersionInfo* target } else if(type == "offset") { + if(child_inval == NOT_SET) + child_inval = IS_VALID; if(initial) { currentGroup->createOffset(cstr_name); @@ -310,6 +314,8 @@ void VersionInfoFactory::ParseOffsets(TiXmlElement * parent, VersionInfo* target } else if(type == "string") { + if(child_inval == NOT_SET) + child_inval = IS_VALID; if(initial) { currentGroup->createString(cstr_name); @@ -325,6 +331,8 @@ void VersionInfoFactory::ParseOffsets(TiXmlElement * parent, VersionInfo* target } else if(type == "hexvalue") { + if(child_inval == NOT_SET) + child_inval = IS_VALID; if(initial) { currentGroup->createHexValue(cstr_name);