Paranoia check

svn-id: r34901
This commit is contained in:
Max Horn 2008-11-05 11:57:11 +00:00
parent f2c5d0563f
commit b2d93543d4

View File

@ -156,7 +156,7 @@ bool Theme::themeConfigUseable(const Common::FSNode &node, Common::String &theme
Common::File stream;
bool foundHeader = false;
if (node.getName().hasSuffix(".zip")) {
if (node.getName().hasSuffix(".zip") && !node.isDirectory()) {
#ifdef USE_ZLIB
Common::ZipArchive zipArchive(node);
if (zipArchive.hasFile("THEMERC")) {