]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PerformancePkg/Dp_App/DpUtilities.c
LoadedImageDevicePath protocol may be installed with NULL device path, so add check...
[mirror_edk2.git] / PerformancePkg / Dp_App / DpUtilities.c
index 0d4e17acc136364e0e7c71f58e999d4c7c22655c..f44745fd1dd6042c89bcb03154c59cc551c80323 100644 (file)
@@ -289,7 +289,7 @@ GetNameFromHandle (
                   &gEfiLoadedImageDevicePathProtocolGuid,\r
                   (VOID **) &LoadedImageDevicePath\r
                   );\r
-  if (!EFI_ERROR (Status)) {\r
+  if (!EFI_ERROR (Status) && (LoadedImageDevicePath != NULL)) {\r
     DevicePath = LoadedImageDevicePath;\r
 \r
     //\r