summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHess Chen <hesheng.chen@intel.com>2014-09-03 02:09:19 +0000
committerhchen30 <hchen30@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-03 02:09:19 +0000
commit51b8553fd27f8b235c028f7249ec4dd5f0398689 (patch)
tree7977ee2d4d04fec0c0a33a9965ade94215ffb130
parent7f79b01e8ef43901785dbccc1f4676cdf9a53d31 (diff)
downloadedk2-51b8553fd27f8b235c028f7249ec4dd5f0398689.zip
edk2-51b8553fd27f8b235c028f7249ec4dd5f0398689.tar.gz
edk2-51b8553fd27f8b235c028f7249ec4dd5f0398689.tar.bz2
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 <hesheng.chen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16039 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--BaseTools/Source/C/Common/CommonLib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/BaseTools/Source/C/Common/CommonLib.c b/BaseTools/Source/C/Common/CommonLib.c
index 4b4d022..aa89115 100644
--- a/BaseTools/Source/C/Common/CommonLib.c
+++ b/BaseTools/Source/C/Common/CommonLib.c
@@ -665,6 +665,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.
//
while ((PathPointer = strstr (mCommonLibFullPath, "\\.\\")) != NULL) {