diff options
-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) {
|