]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Dxe/Hand/DriverSupport.c
Fix buger in DxeMain module and modify uefispec.h coding style
[mirror_edk2.git] / EdkModulePkg / Core / Dxe / Hand / DriverSupport.c
index aa601fba083d9f639d2130b1877c12e269d6e1f9..30738572c932221ac33a000b00f055e11867d583 100644 (file)
@@ -411,10 +411,10 @@ Returns:
   // 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