mirror of https://github.com/acidanthera/audk.git
Make the EdkMoudlePkg build by allocate mCallbackFnTable at runtime as PCD_TOTAL_TOKEN_NUMBER could be zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@390 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3496595d7b
commit
abc25afaa5
|
@ -24,7 +24,7 @@ Module Name: Service.c
|
|||
|
||||
PCD_DATABASE * mPcdDatabase;
|
||||
|
||||
LIST_ENTRY mCallbackFnTable[PCD_TOTAL_TOKEN_NUMBER];
|
||||
LIST_ENTRY *mCallbackFnTable;
|
||||
|
||||
VOID *
|
||||
GetWorker (
|
||||
|
@ -310,6 +310,11 @@ BuildPcdDxeDataBase (
|
|||
//
|
||||
// Initialized the Callback Function Table
|
||||
//
|
||||
|
||||
if (PCD_TOTAL_TOKEN_NUMBER != 0) {
|
||||
mCallbackFnTable = AllocateZeroPool (PCD_TOTAL_TOKEN_NUMBER);
|
||||
}
|
||||
|
||||
for (Idx = 0; Idx < PCD_TOTAL_TOKEN_NUMBER; Idx++) {
|
||||
InitializeListHead (&mCallbackFnTable[Idx]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue