]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c
fix some minor warning
[mirror_edk2.git] / EdkUnixPkg / Dxe / PlatformBds / Generic / BootMaint / BootOption.c
index 3fccd99e4a2c2d5e89767e0124c06c61f7728cd7..2d67e0b94a6312adddcc849f551b9d5bf855fc61 100644 (file)
@@ -292,7 +292,7 @@ Returns:
       Status = gBS->HandleProtocol (\r
                       SimpleFsHandle[Index],\r
                       &gEfiBlockIoProtocolGuid,\r
-                      &BlkIo\r
+                      (VOID**) &BlkIo\r
                       );\r
       if (EFI_ERROR (Status)) {\r
         //\r
@@ -426,7 +426,7 @@ Returns:
   Status = gBS->LocateProtocol (\r
                   &gEfiLegacyBiosProtocolGuid,\r
                   NULL,\r
-                  &LegacyBios\r
+                  (VOID**) &LegacyBios\r
                   );\r
   if (!EFI_ERROR (Status)) {\r
 \r
@@ -719,7 +719,7 @@ Returns:
   Status = gBS->LocateProtocol (\r
                   &gEfiLegacyBiosProtocolGuid,\r
                   NULL,\r
-                  &LegacyBios\r
+                  (VOID**) &LegacyBios\r
                   );\r
   if (!EFI_ERROR (Status)) {\r
     Status = LegacyBios->GetBbsInfo (\r
@@ -1119,7 +1119,7 @@ Returns:
   while (*Ptr != 0) {\r
     if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '.' && *(Ptr + 3) != 0) {\r
       //\r
-      // Convert \Name\..\ to \\r
+      // Convert "\Name\..\" to "\"\r
       // DO NOT convert the .. if it is at the end of the string. This will\r
       // break the .. behavior in changing directories.\r
       //\r
@@ -1127,7 +1127,7 @@ Returns:
       Ptr = LastSlash;\r
     } else if (*Ptr == '\\' && *(Ptr + 1) == '.' && *(Ptr + 2) == '\\') {\r
       //\r
-      // Convert a \.\ to a \\r
+      // Convert a "\.\" to a "\"\r
       //\r
       BdsStrCpy (Ptr, Ptr + 2);\r
       Ptr = LastSlash;\r
@@ -1321,7 +1321,7 @@ Returns:
     Status = gBS->HandleProtocol (\r
                     CurHandle,\r
                     &gEfiSimpleFileSystemProtocolGuid,\r
-                    &SimpleFs\r
+                    (VOID**) &SimpleFs\r
                     );\r
     if (Status == EFI_SUCCESS) {\r
       continue;\r
@@ -1330,7 +1330,7 @@ Returns:
     Status = gBS->HandleProtocol (\r
                     CurHandle,\r
                     &gEfiLoadFileProtocolGuid,\r
-                    &LoadFile\r
+                    (VOID**) &LoadFile\r
                     );\r
     if (Status == EFI_SUCCESS) {\r
       continue;\r