Account empty EDAT (#11146)

* Improve sys_fs_open logging
This commit is contained in:
Eladash 2021-11-14 01:15:27 +02:00 committed by GitHub
parent 48ad959697
commit cfe08de951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 24 deletions

View file

@ -936,7 +936,7 @@ bool EDATADecrypter::ReadHeader()
// Try decrypting the first block instead
u8 data_sample[1];
if (!ReadData(0, data_sample, 1))
if (file_size && !ReadData(0, data_sample, 1))
{
return false;
}