summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/imageformats/dds/qddshandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/imageformats/dds/qddshandler.cpp b/src/plugins/imageformats/dds/qddshandler.cpp
index f7829aa..bfd18cd 100644
--- a/src/plugins/imageformats/dds/qddshandler.cpp
+++ b/src/plugins/imageformats/dds/qddshandler.cpp
@@ -1569,6 +1569,8 @@ bool QDDSHandler::ensureScanned() const
return false;
that->m_format = getFormat(m_header);
+ if (that->m_format == FormatUnknown)
+ return false;
m_scanState = ScanSuccess;
return true;