Skip to content

Commit 2f0e0e6

Browse files
Merge pull request ladislav-zezula#150 from BogdanW3/sign
Support for mpq not being the last part of a file
2 parents b4e74f6 + a391c14 commit 2f0e0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SFileVerify.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ bool QueryMpqSignatureInfo(
767767

768768
// Check the signature header "NGIS"
769769
if(pSI->Signature[0] != 'N' || pSI->Signature[1] != 'G' || pSI->Signature[2] != 'I' || pSI->Signature[3] != 'S')
770-
return false;
770+
return true; //Not a valid signature, but another filetype could've been appended so not always an error.
771771

772772
pSI->SignatureTypes |= SIGNATURE_TYPE_STRONG;
773773
return true;

0 commit comments

Comments
 (0)