fix inverted logic

This commit is contained in:
Dennis Luxen 2014-04-09 23:10:58 -04:00
parent eaed8572f0
commit ee4ecb9783

View File

@ -200,13 +200,15 @@ int main( const int argc, const char * argv[] ) {
UUID uuid_loaded, uuid_orig;
hsgr_input_stream.read((char *)&uuid_loaded, sizeof(UUID));
if( !uuid_loaded.TestGraphUtil(uuid_orig) ) {
SimpleLogger().Write(logWARNING) <<
".hsgr was prepared with different build. "
"Reprocess to get rid of this warning.";
} else {
if (uuid_loaded.TestGraphUtil(uuid_orig))
{
SimpleLogger().Write(logDEBUG) << "UUID checked out ok";
}
else
{
SimpleLogger().Write(logWARNING) << ".hsgr was prepared with different build. "
"Reprocess to get rid of this warning.";
}
// load checksum
unsigned checksum = 0;