]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
MdeModulePkg/Ip4Dxe: return error on memory allocate failure instead of ASSERT.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Driver.c
index 03ba458a96f5fb244bb61be27398309fdb8b1fbf..49b7dc55d5da3feed2b40ee57bc963542ae549c8 100644 (file)
@@ -46,7 +46,7 @@ IpSec2InstalledCallback (
   // Test if protocol was even found.\r
   // Notification function will be called at least once.\r
   //\r
-  Status = gBS->LocateProtocol (&gEfiIpSec2ProtocolGuid, NULL, &mIpSec);\r
+  Status = gBS->LocateProtocol (&gEfiIpSec2ProtocolGuid, NULL, (VOID **)&mIpSec);\r
   if (Status == EFI_SUCCESS && mIpSec != NULL) {\r
     //\r
     // Close the event so it does not get called again.\r