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:
eric_tian 2009-01-21 04:56:24 +00:00
parent 7efb1d8996
commit 29dd3b04b0
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ CoreLocateHandle (
VOID *Interface;
if (BufferSize == NULL) {
Status = EFI_INVALID_PARAMETER;
return EFI_INVALID_PARAMETER;
}
if ((*BufferSize > 0) && (Buffer == NULL)) {