- Fix a broken status check in Bus_StartFdo. Spotted by willok.

svn path=/trunk/; revision=71207
This commit is contained in:
Thomas Faber 2016-04-26 18:29:42 +00:00
parent a91ac10b0f
commit cc84d2386d

View file

@ -268,7 +268,7 @@ Bus_StartFdo (
PFDO_DEVICE_DATA FdoData, PFDO_DEVICE_DATA FdoData,
PIRP Irp ) PIRP Irp )
{ {
NTSTATUS status = STATUS_SUCCESS; NTSTATUS status;
POWER_STATE powerState; POWER_STATE powerState;
ACPI_STATUS AcpiStatus; ACPI_STATUS AcpiStatus;
@ -286,10 +286,9 @@ Bus_StartFdo (
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }
AcpiStatus = AcpiInitializeTables(NULL, 16, 0);
AcpiStatus = AcpiInitializeTables(NULL, 16, 0); if (ACPI_FAILURE(AcpiStatus)){
if (ACPI_FAILURE(status)){ DPRINT1("Unable to AcpiInitializeTables\n");
DPRINT1("Unable to AcpiInitializeSubsystem\n");
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }