]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c
SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / NicIp4Variable.c
index f283db019d75c7ee76fbf859210357c779424d8c..f0e03af900bcc4037d3660bf1464cd3c44ccdd5d 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, (VOID**)&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, (VOID**)&NicConfig, NULL);\r
     if (NicConfig == NULL) {\r
       break;\r
     }\r