mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
add error handling for input parameter.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9582 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d14d2707ea
commit
81c5255cdf
@ -1288,6 +1288,10 @@ Returns:
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (DataSize != 0 && Data == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
//
|
||||
// Make sure if runtime bit is set, boot service bit is set also
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user