improve error handling

date	2003.07.14.18.27.00;	author agrover;	state Exp;
This commit is contained in:
aystarik 2005-06-29 15:39:11 +00:00
parent e27e364d52
commit d9045bf504

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: adisasm - Application-level disassembler routines
* $Revision: 1.58 $
* $Revision: 1.59 $
*
*****************************************************************************/
@ -871,6 +871,11 @@ AdGetLocalTables (
{
ACPI_STRNCPY (TableHeader.Signature, "RSDT", 4);
AcpiOsTableOverride (&TableHeader, &NewTable);
if (!NewTable)
{
fprintf (stderr, "Could not obtain RSDT\n");
return AE_NO_ACPI_TABLES;
}
#if ACPI_MACHINE_WIDTH != 64
@ -933,7 +938,7 @@ AdGetLocalTables (
else
{
fprintf (stderr, "Could not obtain DSDT\n");
Status = AE_NO_ACPI_TABLES;
return AE_NO_ACPI_TABLES;
}
AcpiOsPrintf ("\n");