1
0
mirror of https://github.com/acpica/acpica/ synced 2025-03-01 20:01:33 +03:00

iASL: Fix for fault after "max errors exceeded".

Cleanup and exit properly after the maximum number of errors
have been exceeded.
This commit is contained in:
Robert Moore 2009-11-06 13:36:41 -08:00
parent 0f4a91c1bd
commit 35d93031cf
2 changed files with 8 additions and 7 deletions
source/compiler

@ -895,13 +895,6 @@ CmCleanupAndExit (
10) / Gbl_NsLookupCount);
}
/* Close all open files */
for (i = 2; i < ASL_MAX_FILE_TYPE; i++)
{
FlCloseFile (i);
}
/*
* TBD: SourceOutput should be .TMP, then rename if we want to keep it?
*/
@ -923,6 +916,13 @@ CmCleanupAndExit (
}
UtDisplaySummary (ASL_FILE_STDOUT);
/* Close all open files */
for (i = 2; i < ASL_MAX_FILE_TYPE; i++)
{
FlCloseFile (i);
}
}

@ -535,6 +535,7 @@ AslCommonError (
Gbl_NextError = Gbl_ErrorLog;
CmDoOutputFiles ();
CmCleanupAndExit ();
exit(1);
}
return;