[*] Wrap Window bit validation around hasWindowbits check

This commit is contained in:
Reece Wilson 2022-02-19 10:50:28 +00:00
parent 9aa5d9f434
commit 9681450156

View File

@ -16,14 +16,17 @@ namespace Aurora::Compression
{
out = 0;
if (info.windowBits < 0)
if (info.hasWindowbits)
{
return {};
}
if (info.windowBits < 0)
{
return {};
}
if (info.windowBits > 15)
{
return {};
if (info.windowBits > 15)
{
return {};
}
}
if (info.alg == ECompresionType::eGZip)