From 53e8be60203068140b25df03e281cce3243d73ef Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 17 Jun 2015 17:38:35 +0400 Subject: [PATCH] (TryOpen): check file count against zero. --- ArcFormats/ArcQLIE.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/ArcQLIE.cs b/ArcFormats/ArcQLIE.cs index 6a48c282..d3b17ab1 100644 --- a/ArcFormats/ArcQLIE.cs +++ b/ArcFormats/ArcQLIE.cs @@ -65,7 +65,7 @@ namespace GameRes.Formats.Qlie if (pack_version != 2) throw new NotSupportedException ("Not supported QLIE archive version"); int count = file.View.ReadInt32 (index_offset+0x10); - if (count < 0 || count > 0xfffff) + if (count <= 0 || count > 0xfffff) return null; index_offset = file.View.ReadInt64 (index_offset+0x14); if (index_offset < 0 || index_offset >= file.MaxOffset)