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. //