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
This commit is contained in:
jljusten 2008-03-11 19:21:25 +00:00
parent 5bd4f5fafb
commit e02b6b9565
1 changed files with 2 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ Returns:
while (*Ptr != 0) { while (*Ptr != 0) {
if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) != 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 // DO NOT convert the .. if it is at the end of the string. This will
// break the .. behavior in changing directories. // break the .. behavior in changing directories.
// //
@ -1175,7 +1175,7 @@ Returns:
Ptr = LastSlash; Ptr = LastSlash;
} else if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '\\') { } else if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '\\') {
// //
// Convert a \.\ to a \ // Convert a "\.\" to a "\"
// //
BdsStrCpy (Ptr, Ptr + 2); BdsStrCpy (Ptr, Ptr + 2);
Ptr = LastSlash; Ptr = LastSlash;