From c2463a8709e5b3a5ce54c09d35b4820a756b0fc5 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 14 Nov 2012 22:20:16 +0000 Subject: Import ACPICA 20121114. --- source/compiler/prutils.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source/compiler/prutils.c') diff --git a/source/compiler/prutils.c b/source/compiler/prutils.c index 9ec851a90d992..15027088ffa41 100644 --- a/source/compiler/prutils.c +++ b/source/compiler/prutils.c @@ -337,16 +337,17 @@ PrOpenIncludeWithPrefix ( /* Attempt to open the file, push if successful */ IncludeFile = fopen (Pathname, "r"); - if (IncludeFile) + if (!IncludeFile) { - /* Push the include file on the open input file stack */ - - PrPushInputFileStack (IncludeFile, Pathname); - return (IncludeFile); + fprintf (stderr, "Could not open include file %s\n", Pathname); + ACPI_FREE (Pathname); + return (NULL); } - ACPI_FREE (Pathname); - return (NULL); + /* Push the include file on the open input file stack */ + + PrPushInputFileStack (IncludeFile, Pathname); + return (IncludeFile); } -- cgit v1.2.3