diff options
author | Hess Chen <hesheng.chen@intel.com> | 2014-09-03 02:09:19 +0000 |
---|---|---|
committer | hchen30 <hchen30@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-09-03 02:09:19 +0000 |
commit | 51b8553fd27f8b235c028f7249ec4dd5f0398689 (patch) | |
tree | 7977ee2d4d04fec0c0a33a9965ade94215ffb130 /BaseTools/Source | |
parent | 7f79b01e8ef43901785dbccc1f4676cdf9a53d31 (diff) | |
download | edk2-platforms-51b8553fd27f8b235c028f7249ec4dd5f0398689.tar.xz |
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
Diffstat (limited to 'BaseTools/Source')
-rw-r--r-- | BaseTools/Source/C/Common/CommonLib.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -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) {
|