]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / NicIp4Variable.c
index f283db019d75c7ee76fbf859210357c779424d8c..27ee99219bc1e463b029d7fc9ddcdf67b1f8f472 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines used to operate the Ip4 configure variable.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at<BR>\r
@@ -91,7 +91,7 @@ Ip4ConfigReadVariable (
 {\r
   NIC_IP4_CONFIG_INFO *NicConfig;\r
 \r
-  NicConfig = GetVariable (Instance->MacString, &gEfiNicIp4ConfigVariableGuid);\r
+  GetVariable2 (Instance->MacString, &gEfiNicIp4ConfigVariableGuid, &NicConfig, NULL);\r
   if (NicConfig != NULL) {\r
     Ip4ConfigFixRouteTablePointer (&NicConfig->Ip4Info);\r
   }\r
@@ -255,7 +255,7 @@ Check:
       continue;\r
     }\r
 \r
-    NicConfig = GetVariable (VariableName, &gEfiNicIp4ConfigVariableGuid);\r
+    GetVariable2 (VariableName, &gEfiNicIp4ConfigVariableGuid, &NicConfig, NULL);\r
     if (NicConfig == NULL) {\r
       break;\r
     }\r