diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-01 12:40:21 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-01 12:40:21 +0000 |
commit | 243324fc4d9f35847735776b2033004d05e66baa (patch) | |
tree | f79fd941f404ffdc29c28e9cd0706af3607635d3 /MdeModulePkg | |
parent | 4d3840844d284538dbc9f9005f63f05ea15fc7d0 (diff) | |
download | edk2-platforms-243324fc4d9f35847735776b2033004d05e66baa.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c index 57fcf4d732..c329d96f95 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
|