BaseTools: Convert ".\\" to "" in FilePath

Convert ".\\" to "", because it doesn't work with WINDOWS_EXTENSION_PATH.
WINDOWS_EXTENSION_PATH can support the file path larger than 260 length.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17686 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Liming Gao 2015-06-23 10:48:04 +00:00 committed by lgao4
parent 901fd82238
commit e878891ea6
1 changed files with 9 additions and 1 deletions

View File

@ -671,6 +671,14 @@ Returns:
*(PathPointer + 2) = '\0';
strcat (mCommonLibFullPath, PathPointer + 3);
}
//
// Convert ".\\" to "", because it doesn't work with WINDOWS_EXTENSION_PATH.
//
while ((PathPointer = strstr (mCommonLibFullPath, ".\\")) != NULL) {
*PathPointer = '\0';
strcat (mCommonLibFullPath, PathPointer + 2);
}
//
// Convert "\\.\\" to "\\", because it doesn't work with WINDOWS_EXTENSION_PATH.
@ -679,7 +687,7 @@ Returns:
*PathPointer = '\0';
strcat (mCommonLibFullPath, PathPointer + 2);
}
//
// Convert "\\..\\" to last directory, because it doesn't work with WINDOWS_EXTENSION_PATH.
//