Revert my changes in r37808.
[reactos.git] / reactos / tools / rbuild / project.cpp
index 8660120..8366ce9 100644 (file)
@@ -399,13 +399,17 @@ Project::ProcessXMLSubElement ( const XMLElement& e,
                name = e.GetAttribute ( "property", true );
                assert( name );
                const Property *property = LookupProperty( name->value );
-               if ( !property )
+               const string *PropertyValue;
+               const string EmptyString;
+
+               if (property)
                {
-                       // Property not found
-                       throw InvalidOperationException ( __FILE__,
-                                                         __LINE__,
-                                                         "Test on unknown property '%s' at %s",
-                                                         name->value.c_str (), e.location.c_str () );
+                       PropertyValue = &property->value;
+               }
+               else
+               {
+                       // Property does not exist, treat it as being empty
+                       PropertyValue = &EmptyString;
                }
 
                const XMLAttribute* value;
@@ -413,7 +417,7 @@ Project::ProcessXMLSubElement ( const XMLElement& e,
                assert( value );
 
                bool negate = ( e.name == "ifnot" );
-               bool equality = ( property->value == value->value );
+               bool equality = ( *PropertyValue == value->value );
                if ( equality == negate )
                {
                        // Failed, skip this element