iASL: Support absolute pathnames for include files.

Add support for absolute pathnames within the Include operator.
previously, only relative pathnames were supported.
This commit is contained in:
Robert Moore 2008-07-23 10:42:31 -07:00
parent 70bf57ce49
commit 61a66a6a92

View File

@ -191,7 +191,18 @@ FlOpenLocalFile (
char *Mode)
{
strcpy (StringBuffer, Gbl_DirectoryPath);
StringBuffer[0] = 0;
/* Check for an absolute pathname */
if ((LocalName[0] != '/') && /* Forward slash */
(LocalName[0] != '\\') && /* backslash (Win) */
(LocalName[1] != ':')) /* Device name (Win) */
{
/* The include file path is relative, prepend the directory path */
strcat (StringBuffer, Gbl_DirectoryPath);
}
strcat (StringBuffer, LocalName);
DbgPrint (ASL_PARSE_OUTPUT, "FlOpenLocalFile: %s\n", StringBuffer);