[Scummvm-cvs-logs] SF.net SVN: scummvm:[34825] scummvm/trunk/gui/theme.cpp

tanoku at users.sourceforge.net tanoku at users.sourceforge.net
Sun Oct 19 01:58:26 CEST 2008


Revision: 34825
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34825&view=rev
Author:   tanoku
Date:     2008-10-18 23:58:26 +0000 (Sat, 18 Oct 2008)

Log Message:
-----------
Fixed: Assert when parsing a corrupted Theme archive (now discarding the theme silently as non-valid).

Modified Paths:
--------------
    scummvm/trunk/gui/theme.cpp

Modified: scummvm/trunk/gui/theme.cpp
===================================================================
--- scummvm/trunk/gui/theme.cpp	2008-10-18 22:56:43 UTC (rev 34824)
+++ scummvm/trunk/gui/theme.cpp	2008-10-18 23:58:26 UTC (rev 34825)
@@ -132,6 +132,9 @@
 bool Theme::themeConfigParseHeader(Common::String header, Common::String &themeName) {	
 	header.trim();
 	
+	if (header.empty())
+		return false;
+	
 	if (header[0] != '[' || header.lastChar() != ']')
 		return false;
 		


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list