VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Library/CommonLib
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2016-09-17 01:00:44 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:17:43 +0200
commit5fb01149ef1cecc36b261094b304ff0654bb7ae3 (patch)
treeccef2539faf18ffb8a2e29cd9f96e228c93cb4dc /Library/CommonLib
parentb6d7ea98fc46c20b59860edcffac13fee89d69b0 (diff)
downloadVeraCrypt-DCS-5fb01149ef1cecc36b261094b304ff0654bb7ae3.tar.gz
VeraCrypt-DCS-5fb01149ef1cecc36b261094b304ff0654bb7ae3.zip
DcsRe select volume is added to boot from usb
Notes (7.2, 7.4)
Diffstat (limited to 'Library/CommonLib')
-rw-r--r--Library/CommonLib/EfiBio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/CommonLib/EfiBio.c b/Library/CommonLib/EfiBio.c
index 9577c08..e6509f9 100644
--- a/Library/CommonLib/EfiBio.c
+++ b/Library/CommonLib/EfiBio.c
@@ -71,6 +71,7 @@ EfiGetHandles(
{
EFI_STATUS res = EFI_BUFFER_TOO_SMALL;
UINTN BufferSize;
+ if ((Buffer == NULL) || (Count == NULL)) return EFI_INVALID_PARAMETER;
if(*Buffer != NULL) MEM_FREE(*Buffer);
*Count = 0;
*Buffer = (EFI_HANDLE*) MEM_ALLOC(sizeof(EFI_HANDLE));
@@ -80,7 +81,7 @@ EfiGetHandles(
if (res == RETURN_BUFFER_TOO_SMALL) {
MEM_FREE(*Buffer);
*Buffer = (EFI_HANDLE*)MEM_ALLOC(BufferSize);
- if (!Buffer) {
+ if (*Buffer == NULL) {
return EFI_OUT_OF_RESOURCES;
}
res = gBS->LocateHandle(SearchType, Protocol, SearchKey, &BufferSize, *Buffer);