mirror of https://github.com/acidanthera/audk.git
The caller of FindVariable() function ensure VariableName != NULL && VendorGuid != NULL. In the internal of this function, we only need to ensure that (VariableName[0] != 0 && VenderGuid != NULL) is true.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7389 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
841c077074
commit
6041576eb2
|
@ -379,7 +379,7 @@ FindVariable (
|
||||||
UINT32 Count;
|
UINT32 Count;
|
||||||
UINT8 *VariableBase;
|
UINT8 *VariableBase;
|
||||||
|
|
||||||
if (VariableName != 0 && VendorGuid == NULL) {
|
if (VariableName[0] != 0 && VendorGuid == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
|
@ -367,7 +367,7 @@ FindVariable (
|
||||||
UINT32 Count;
|
UINT32 Count;
|
||||||
UINT8 *VariableBase;
|
UINT8 *VariableBase;
|
||||||
|
|
||||||
if (VariableName != NULL && VendorGuid == NULL) {
|
if (VariableName[0] != 0 && VendorGuid == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue