]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Library/EdkGenericBdsLib/DevicePath.c
Add PciBus Module
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / DevicePath.c
index 56b21a3ac3fb2ca501fe7f52bb933711cf5f8c6b..e893046c4efe60a62d1bd012e1177a5b5c30a9b8 100644 (file)
@@ -71,7 +71,7 @@ Returns:
       CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
     }\r
 \r
-    gBS->FreePool (OldPool);\r
+    FreePool (OldPool);\r
   }\r
 \r
   return NewPool;\r
@@ -137,7 +137,7 @@ Returns:
     Str->len = strsize - sizeof (UINT16);\r
   }\r
 \r
-  gBS->FreePool (AppendStr);\r
+  FreePool (AppendStr);\r
   return Str->str;\r
 }\r
 \r
@@ -975,13 +975,6 @@ DEVICE_PATH_STRING_TABLE  DevPathTable[] = {
   MEDIA_DEVICE_PATH,\r
   MEDIA_PROTOCOL_DP,\r
   DevPathMediaProtocol,\r
-\r
-#if (EFI_SPECIFICATION_VERSION < 0x00020000)\r
-  MEDIA_DEVICE_PATH,\r
-  MEDIA_FV_FILEPATH_DP,\r
-  DevPathFvFilePath,\r
-#endif\r
-\r
   BBS_DEVICE_PATH,\r
   BBS_BBS_DP,\r
   DevPathBssBss,\r
@@ -1066,7 +1059,7 @@ DevicePathToStr (
   //\r
   // Shrink pool used for string allocation\r
   //\r
-  gBS->FreePool (DevPath);\r
+  FreePool (DevPath);\r
 \r
 Done:\r
   NewSize = (Str.len + 1) * sizeof (CHAR16);\r