Convert ".\\" to "", because it doesn't work with WINDOWS_EXTENSION_PATH.
WINDOWS_EXTENSION_PATH can support the file path larger than 260 length.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17686
6f19259b-4bc3-4df7-8a09-
765794883524
*(PathPointer + 2) = '\0';\r
strcat (mCommonLibFullPath, PathPointer + 3);\r
}\r
+ \r
+ //\r
+ // Convert ".\\" to "", because it doesn't work with WINDOWS_EXTENSION_PATH.\r
+ //\r
+ while ((PathPointer = strstr (mCommonLibFullPath, ".\\")) != NULL) {\r
+ *PathPointer = '\0';\r
+ strcat (mCommonLibFullPath, PathPointer + 2);\r
+ }\r
\r
//\r
// Convert "\\.\\" to "\\", because it doesn't work with WINDOWS_EXTENSION_PATH.\r
*PathPointer = '\0';\r
strcat (mCommonLibFullPath, PathPointer + 2);\r
}\r
- \r
+\r
//\r
// Convert "\\..\\" to last directory, because it doesn't work with WINDOWS_EXTENSION_PATH.\r
//\r