]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c
Fix the potential issue that using integrate as BOOLEAN value in judgment.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / BootMaint / BmLib.c
index aaa64c9458bb291160537c7fafc3ca8bcadc554e..f575592dbc713706d5413a77c4c91e55dac07168 100644 (file)
@@ -337,7 +337,7 @@ EfiDevicePathInstanceCount (
   UINTN Size;\r
 \r
   Count = 0;\r
-  while (GetNextDevicePathInstance (&DevicePath, &Size)) {\r
+  while (GetNextDevicePathInstance (&DevicePath, &Size) != NULL) {\r
     Count += 1;\r
   }\r
 \r