summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-01 12:40:21 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-01 12:40:21 +0000
commit243324fc4d9f35847735776b2033004d05e66baa (patch)
treef79fd941f404ffdc29c28e9cd0706af3607635d3 /MdeModulePkg
parent4d3840844d284538dbc9f9005f63f05ea15fc7d0 (diff)
downloadedk2-243324fc4d9f35847735776b2033004d05e66baa.zip
edk2-243324fc4d9f35847735776b2033004d05e66baa.tar.gz
edk2-243324fc4d9f35847735776b2033004d05e66baa.tar.bz2
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c
index 57fcf4d..c329d96 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c
@@ -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