summaryrefslogtreecommitdiff
path: root/source/compiler/aslfileio.c
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2014-11-20 12:33:56 -0800
committerRobert Moore <Robert.Moore@intel.com>2014-11-20 12:33:56 -0800
commit45389fd8ae7cf54b88c708cd46daee483123195a (patch)
tree95b562b4353c317797be014f3f7b0ec6bbfbf3ab /source/compiler/aslfileio.c
parentfa55b6ee22e892047da78f1b0034f39ee0e98445 (diff)
downloadacpica-45389fd8ae7cf54b88c708cd46daee483123195a.tar.gz
iASL: Update error messages for file open errors.
Emit proper filename and abort For debug file, properly handle stderr after freopen
Diffstat (limited to 'source/compiler/aslfileio.c')
-rw-r--r--source/compiler/aslfileio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/compiler/aslfileio.c b/source/compiler/aslfileio.c
index a8c24cc68..b2c25fcd6 100644
--- a/source/compiler/aslfileio.c
+++ b/source/compiler/aslfileio.c
@@ -170,6 +170,9 @@ FlOpenFile (
FILE *File;
+ Gbl_Files[FileId].Filename = Filename;
+ Gbl_Files[FileId].Handle = NULL;
+
File = fopen (Filename, Mode);
if (!File)
{
@@ -177,8 +180,7 @@ FlOpenFile (
AslAbort ();
}
- Gbl_Files[FileId].Filename = Filename;
- Gbl_Files[FileId].Handle = File;
+ Gbl_Files[FileId].Handle = File;
}