mirror of https://github.com/acidanthera/audk.git
Fix a bug that BMM trim the name such as ".\...Name" to ".Name". The "\.." should only be merged with the previous path node if it is "\..\"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4974 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4d3840844d
commit
243324fc4d
|
@ -1165,7 +1165,7 @@ Returns:
|
|||
Ptr = Str;
|
||||
LastSlash = Str;
|
||||
while (*Ptr != 0) {
|
||||
if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) != 0) {
|
||||
if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) == L'\\') {
|
||||
//
|
||||
// Convert "\Name\..\" to "\"
|
||||
// DO NOT convert the .. if it is at the end of the string. This will
|
||||
|
|
Loading…
Reference in New Issue