diff options
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c index aaa64c9458..f575592dbc 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c @@ -337,7 +337,7 @@ EfiDevicePathInstanceCount ( UINTN Size;
Count = 0;
- while (GetNextDevicePathInstance (&DevicePath, &Size)) {
+ while (GetNextDevicePathInstance (&DevicePath, &Size) != NULL) {
Count += 1;
}
|