]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug that BMM trim the name such as ".\...Name" to ".Name". The "\.." should...
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Apr 2008 12:40:21 +0000 (12:40 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Apr 2008 12:40:21 +0000 (12:40 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4974 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c

index 57fcf4d732cd4c6b54f28ea59ec83314abe21432..c329d96f95d724514b06d243fee8b1315da2fe54 100644 (file)
@@ -1165,7 +1165,7 @@ Returns:
   Ptr       = Str;\r
   LastSlash = Str;\r
   while (*Ptr != 0) {\r
-    if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) != 0) {\r
+    if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) == L'\\') {\r
       //\r
       // Convert "\Name\..\" to "\"\r
       // DO NOT convert the .. if it is at the end of the string. This will\r