From: <mg...@us...> - 2008-08-28 10:49:36
|
Revision: 2128 http://planeshift.svn.sourceforge.net/planeshift/?rev=2128&view=rev Author: mgist Date: 2008-08-28 10:49:46 +0000 (Thu, 28 Aug 2008) Log Message: ----------- - Crash fix. Modified Paths: -------------- trunk/src/pslaunch/updaterengine.cpp Modified: trunk/src/pslaunch/updaterengine.cpp =================================================================== --- trunk/src/pslaunch/updaterengine.cpp 2008-08-27 13:53:50 UTC (rev 2127) +++ trunk/src/pslaunch/updaterengine.cpp 2008-08-28 10:49:46 UTC (rev 2128) @@ -855,19 +855,22 @@ PrintOutput("Beginning integrity check!\n"); // Load current config data. + csRef<iDocumentNode> confignode csRef<iDocumentNode> root = GetRootNode(UPDATERINFO_CURRENT_FILENAME); bool success = true; - if(!root) + if(!root.IsValid()) { PrintOutput("Unable to get root node!\n"); success = false; } - - csRef<iDocumentNode> confignode = root->GetNode("config"); - if (!confignode) + else { + confignode = root->GetNode("config"); + if (!confignode.IsValid()) + { PrintOutput("Couldn't find config node in configfile!\n"); success = false; + } } if(!success) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |