return false from wxXmlResource::Load if the resource is corrupted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-10-10 09:48:52 +00:00
parent 120249f602
commit d614f51b31
4 changed files with 28 additions and 6 deletions

View File

@@ -237,7 +237,7 @@ public:
protected:
// Scans the resources list for unloaded files and loads them. Also reloads
// files that have been modified since last loading.
void UpdateResources();
bool UpdateResources();
// Finds a resource (calls UpdateResources) and returns a node containing it.
wxXmlNode *FindResource(const wxString& name, const wxString& classname, bool recursive = FALSE);