From: jljusten Date: Tue, 11 Mar 2008 19:21:25 +0000 (+0000) Subject: edk2/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c: X-Git-Tag: edk2-stable201903~21359 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e02b6b95651ac41aec4f55b25740131d355628a8 edk2/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c: Resolve gcc warning. The backslash ('\') at the end of a comment line is interpretted as a multi-line comment and generates a warning. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4838 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c index 5d0f658342..57fcf4d732 100644 --- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c +++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c @@ -1167,7 +1167,7 @@ Returns: while (*Ptr != 0) { if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) != 0) { // - // Convert \Name\..\ to \ + // Convert "\Name\..\" to "\" // DO NOT convert the .. if it is at the end of the string. This will // break the .. behavior in changing directories. // @@ -1175,7 +1175,7 @@ Returns: Ptr = LastSlash; } else if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '\\') { // - // Convert a \.\ to a \ + // Convert a "\.\" to a "\" // BdsStrCpy (Ptr, Ptr + 2); Ptr = LastSlash;