Ensure that table header is not set before attempting to find ACPI table

This commit is contained in:
2024-07-09 22:36:40 +02:00
parent 3804786e89
commit e46f2e6116

View File

@@ -452,6 +452,9 @@ HlpQueryAcpiTables(IN ULONG Signature,
return STATUS_INVALID_PARAMETER;
}
/* Ensure that table header is not set before attempting to find ACPI table */
TableHeader = NULL;
/* Check if DSDT or FACS table requested */
if(Signature == ACPI_DSDT_SIGNATURE || Signature == ACPI_FACS_SIGNATURE)
{