mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-31 19:23:54 +01:00 
			
		
		
		
	The handler dispatcher in PEI statuscode router driver should check if handler is NULL, if it is not NULL, then handler can be called.
Signed-off-by: li-elvin Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12699 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		
							parent
							
								
									2002bf5dd5
								
							
						
					
					
						commit
						e846c180b9
					
				| @ -249,6 +249,7 @@ ReportDispatcher ( | |||||||
|     NumberOfEntries = GET_GUID_HOB_DATA (Hob); |     NumberOfEntries = GET_GUID_HOB_DATA (Hob); | ||||||
|     CallbackEntry   = (EFI_PEI_RSC_HANDLER_CALLBACK *) (NumberOfEntries + 1); |     CallbackEntry   = (EFI_PEI_RSC_HANDLER_CALLBACK *) (NumberOfEntries + 1); | ||||||
|     for (Index = 0; Index < *NumberOfEntries; Index++) { |     for (Index = 0; Index < *NumberOfEntries; Index++) { | ||||||
|  |       if (CallbackEntry[Index] != NULL) { | ||||||
|       CallbackEntry[Index]( |       CallbackEntry[Index]( | ||||||
|         PeiServices, |         PeiServices, | ||||||
|         CodeType, |         CodeType, | ||||||
| @ -258,6 +259,7 @@ ReportDispatcher ( | |||||||
|         Data |         Data | ||||||
|         ); |         ); | ||||||
|       } |       } | ||||||
|  |     } | ||||||
|     Hob.Raw = GET_NEXT_HOB (Hob); |     Hob.Raw = GET_NEXT_HOB (Hob); | ||||||
|     Hob.Raw = GetNextGuidHob (&gStatusCodeCallbackGuid, Hob.Raw); |     Hob.Raw = GetNextGuidHob (&gStatusCodeCallbackGuid, Hob.Raw); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user