From 30a60d29aac19ca429dc75b6295db907618513b4 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 22 Jun 2006 12:32:30 +0000 Subject: Fix buger in DxeMain module and modify uefispec.h coding style git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@597 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Core/Dxe/Hand/DriverSupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'EdkModulePkg') 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; -- cgit v1.2.3