]> git.proxmox.com Git - mirror_edk2.git/commit
Fix LocateDevicePath() to return proper error status code. It was returning EFI_INVA...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 16 Mar 2011 16:17:09 +0000 (16:17 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 16 Mar 2011 16:17:09 +0000 (16:17 +0000)
commita36a9b37940a8b7f6ccfe0a9cafe4195530f3891
tree2bfae7fdc62ea1fdafeec58d1726690c2beea5a9
parentb3d25388575253929464141f7d7f2f7ded790e2e
Fix LocateDevicePath() to return proper error status code.  It was returning EFI_INVALID_PARAMETER if Device was NULL even if not handles matched the search criteria.  The proper behavior is to return EFI_NOT_FOUND if not handles match the search criteria, and only return EFI_INVALID_PARAMETER if at least one match is found and Device is NULL.

Also update function header comment block for LocateDevicePath() to match UEFI Specification.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11406 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Hand/Locate.c