// Sort the remaining DriverBinding Protocol based on their Version field from\r
// highest to lowest.\r
//\r
- for ( ; SortIndex < DriverBindingHandleCount; SortIndex++) {\r
+ for ( ; SortIndex < NumberOfSortedDriverBindingProtocols; SortIndex++) {\r
HighestVersion = SortedDriverBindingProtocols[SortIndex]->Version;\r
HighestIndex = SortIndex;\r
- for (Index = SortIndex + 1; Index < DriverBindingHandleCount; Index++) {\r
+ for (Index = SortIndex + 1; Index < NumberOfSortedDriverBindingProtocols; Index++) {\r
if (SortedDriverBindingProtocols[Index]->Version > HighestVersion) {\r
HighestVersion = SortedDriverBindingProtocols[Index]->Version;\r
HighestIndex = Index;\r