diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-08 02:31:10 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-08 02:31:10 +0000 |
commit | f5e9ff82b0617a91114a6a04a88cc32db47d87be (patch) | |
tree | ff604be3a0818725b81fde8526d5a3b0ac7dc3d8 /MdeModulePkg/Universal | |
parent | 7a45e5aa6917d5d4e07522aa5284a41e94ffa968 (diff) | |
download | edk2-platforms-f5e9ff82b0617a91114a6a04a88cc32db47d87be.tar.xz |
Add check that Progress is NULL
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8789 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 38d36f8a28..02264c7f8c 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -452,19 +452,19 @@ RouteConfig ( DRIVER_SAMPLE_PRIVATE_DATA *PrivateData;
EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
- if (Configuration == NULL) {
+ if (Configuration == NULL || Progress == NULL) {
return EFI_INVALID_PARAMETER;
}
PrivateData = DRIVER_SAMPLE_PRIVATE_FROM_THIS (This);
HiiConfigRouting = PrivateData->HiiConfigRouting;
+ *Progress = Configuration;
//
// Check routing data in <ConfigHdr>.
// Note: if only one Storage is used, then this checking could be skipped.
//
if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, VariableName)) {
- *Progress = Configuration;
return EFI_NOT_FOUND;
}
|