From 51b8553fd27f8b235c028f7249ec4dd5f0398689 Mon Sep 17 00:00:00 2001 From: Hess Chen Date: Wed, 3 Sep 2014 02:09:19 +0000 Subject: BaseTools/CommonLib: Add a step to convert ":\\" to ":\" Convert ":\\\\" to ":\\", because it doesn't work with WINDOWS_EXTENSION_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16039 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/C/Common/CommonLib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BaseTools/Source/C/Common/CommonLib.c b/BaseTools/Source/C/Common/CommonLib.c index 4b4d02274c..aa891152bf 100644 --- a/BaseTools/Source/C/Common/CommonLib.c +++ b/BaseTools/Source/C/Common/CommonLib.c @@ -664,6 +664,14 @@ Returns: } } while (*PathPointer ++ != '\0'); + // + // Convert ":\\\\" to ":\\", because it doesn't work with WINDOWS_EXTENSION_PATH. + // + if ((PathPointer = strstr (mCommonLibFullPath, ":\\\\")) != NULL) { + *(PathPointer + 2) = '\0'; + strcat (mCommonLibFullPath, PathPointer + 3); + } + // // Convert "\\.\\" to "\\", because it doesn't work with WINDOWS_EXTENSION_PATH. // -- cgit v1.2.3