From f5e9ff82b0617a91114a6a04a88cc32db47d87be Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 8 Jul 2009 02:31:10 +0000 Subject: [PATCH] Add check that Progress is NULL git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8789 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 4 ++-- 1 file 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 . // Note: if only one Storage is used, then this checking could be skipped. // if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, VariableName)) { - *Progress = Configuration; return EFI_NOT_FOUND; }