acpixtract: don't abort AxExtractTables for AX_OPTIONAL_TABLES

Otherwise this makes the utility return an error for invocations like
"acpixtract <FILE>", where FILE contains a DSDT but no SSDTs.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
This commit is contained in:
Daniil Tatianin 2024-07-07 23:46:46 +03:00
parent 361891b007
commit ad5755dd80

View File

@ -213,7 +213,7 @@ AxExtractTables (
AxNormalizeSignature (UpperSignature);
Instances = AxCountTableInstances (InputPathname, UpperSignature);
if (Instances < MinimumInstances)
if (Instances < MinimumInstances || MinimumInstances == AX_OPTIONAL_TABLES)
{
printf ("Table [%s] was not found in %s\n",
UpperSignature, InputPathname);