From d9045bf504d689f6ea074d94f77f71d5a3597fb9 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 15:39:11 +0000 Subject: [PATCH] improve error handling date 2003.07.14.18.27.00; author agrover; state Exp; --- source/common/adisasm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/common/adisasm.c b/source/common/adisasm.c index b45dc6fdf..4c819381c 100644 --- a/source/common/adisasm.c +++ b/source/common/adisasm.c @@ -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");