summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Core/Dxe/Hand
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Core/Dxe/Hand')
-rw-r--r--EdkModulePkg/Core/Dxe/Hand/DriverSupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkModulePkg/Core/Dxe/Hand/DriverSupport.c b/EdkModulePkg/Core/Dxe/Hand/DriverSupport.c
index aa601fba08..30738572c9 100644
--- a/EdkModulePkg/Core/Dxe/Hand/DriverSupport.c
+++ b/EdkModulePkg/Core/Dxe/Hand/DriverSupport.c
@@ -411,10 +411,10 @@ Returns:
// Sort the remaining DriverBinding Protocol based on their Version field from
// highest to lowest.
//
- for ( ; SortIndex < DriverBindingHandleCount; SortIndex++) {
+ for ( ; SortIndex < NumberOfSortedDriverBindingProtocols; SortIndex++) {
HighestVersion = SortedDriverBindingProtocols[SortIndex]->Version;
HighestIndex = SortIndex;
- for (Index = SortIndex + 1; Index < DriverBindingHandleCount; Index++) {
+ for (Index = SortIndex + 1; Index < NumberOfSortedDriverBindingProtocols; Index++) {
if (SortedDriverBindingProtocols[Index]->Version > HighestVersion) {
HighestVersion = SortedDriverBindingProtocols[Index]->Version;
HighestIndex = Index;