Revision: 17686
http://sourceforge.net/p/edk2/code/17686
Author: lgao4
Date: 2015-06-23 10:48:04 +0000 (Tue, 23 Jun 2015)
Log Message:
-----------
BaseTools: Convert ".\\" to "" in FilePath
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 <[email protected]>
Reviewed-by: Yingke Liu <[email protected]>
Modified Paths:
--------------
trunk/edk2/BaseTools/Source/C/Common/CommonLib.c
Modified: trunk/edk2/BaseTools/Source/C/Common/CommonLib.c
===================================================================
--- trunk/edk2/BaseTools/Source/C/Common/CommonLib.c 2015-06-23 08:45:06 UTC
(rev 17685)
+++ trunk/edk2/BaseTools/Source/C/Common/CommonLib.c 2015-06-23 10:48:04 UTC
(rev 17686)
@@ -671,6 +671,14 @@
*(PathPointer + 2) = '\0';
strcat (mCommonLibFullPath, PathPointer + 3);
}
+
+ //
+ // Convert ".\\" to "", because it doesn't work with
WINDOWS_EXTENSION_PATH.
+ //
+ while ((PathPointer = strstr (mCommonLibFullPath, ".\\")) != NULL) {
+ *PathPointer = '\0';
+ strcat (mCommonLibFullPath, PathPointer + 2);
+ }
//
// Convert "\\.\\" to "\\", because it doesn't work with
WINDOWS_EXTENSION_PATH.
@@ -679,7 +687,7 @@
*PathPointer = '\0';
strcat (mCommonLibFullPath, PathPointer + 2);
}
-
+
//
// Convert "\\..\\" to last directory, because it doesn't work with
WINDOWS_EXTENSION_PATH.
//
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits