X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FCore%2FDxe%2FHand%2FDriverSupport.c;fp=EdkModulePkg%2FCore%2FDxe%2FHand%2FDriverSupport.c;h=30738572c932221ac33a000b00f055e11867d583;hp=aa601fba083d9f639d2130b1877c12e269d6e1f9;hb=30a60d29aac19ca429dc75b6295db907618513b4;hpb=03b1a72da7fbda3f1e11a08557da9a9e8a6e3b8b 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;