mirror of https://github.com/acidanthera/audk.git
Fix Klocwork warning. We should directly return EFI_INVALID_PARAMETER when BufferSize is NULL.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7323 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7efb1d8996
commit
29dd3b04b0
|
@ -129,7 +129,7 @@ CoreLocateHandle (
|
|||
VOID *Interface;
|
||||
|
||||
if (BufferSize == NULL) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if ((*BufferSize > 0) && (Buffer == NULL)) {
|
||||
|
|
Loading…
Reference in New Issue