don't close files that point to stderr or stdout

This commit is contained in:
Erik Schmauss 2019-04-01 13:27:25 -07:00
parent 94173b172e
commit 57972e2f7b

View File

@ -991,7 +991,15 @@ FinishFiles(
for (i = ASL_FILE_INPUT; i < ASL_MAX_FILE_TYPE; i++)
{
FlCloseFile (i);
/*
* Some files could such as debug output files could be pointing to
* stderr or stdout. Leave these alone...
*/
if (AslGbl_Files[i].Handle != stderr &&
AslGbl_Files[i].Handle != stdout)
{
FlCloseFile (i);
}
}
/* Delete AML file if there are errors */