This commit is contained in:
Igor Pavlov
2022-06-23 11:43:16 +01:00
committed by Kornel
parent c3529a41f5
commit ec44a8a070
1248 changed files with 15242 additions and 2443 deletions
+5 -2
View File
@@ -162,7 +162,10 @@ HRESULT CHandler::Open2(IInStream *stream, IArchiveOpenCallback *callback)
numLetters++;
}
}
else if (ext.Len() >= 2 && StringsAreEqual_Ascii(ext2.RightPtr(2), "01"))
else if (ext2.Len() >= 2 && (
StringsAreEqual_Ascii(ext2.RightPtr(2), "01")
|| StringsAreEqual_Ascii(ext2.RightPtr(2), "00")
))
{
while (numLetters < ext2.Len())
{
@@ -170,7 +173,7 @@ HRESULT CHandler::Open2(IInStream *stream, IArchiveOpenCallback *callback)
break;
numLetters++;
}
if (numLetters != ext.Len())
if (numLetters != ext2.Len())
return S_FALSE;
}
else