mirror of https://github.com/acidanthera/audk.git
Add check that Progress is NULL
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8789 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7a45e5aa69
commit
f5e9ff82b0
|
@ -452,19 +452,19 @@ RouteConfig (
|
||||||
DRIVER_SAMPLE_PRIVATE_DATA *PrivateData;
|
DRIVER_SAMPLE_PRIVATE_DATA *PrivateData;
|
||||||
EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
|
EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
|
||||||
|
|
||||||
if (Configuration == NULL) {
|
if (Configuration == NULL || Progress == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrivateData = DRIVER_SAMPLE_PRIVATE_FROM_THIS (This);
|
PrivateData = DRIVER_SAMPLE_PRIVATE_FROM_THIS (This);
|
||||||
HiiConfigRouting = PrivateData->HiiConfigRouting;
|
HiiConfigRouting = PrivateData->HiiConfigRouting;
|
||||||
|
*Progress = Configuration;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check routing data in <ConfigHdr>.
|
// Check routing data in <ConfigHdr>.
|
||||||
// Note: if only one Storage is used, then this checking could be skipped.
|
// Note: if only one Storage is used, then this checking could be skipped.
|
||||||
//
|
//
|
||||||
if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, VariableName)) {
|
if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, VariableName)) {
|
||||||
*Progress = Configuration;
|
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue