VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Library/VeraCryptLib/DcsVeraCrypt.c
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/VeraCryptLib/DcsVeraCrypt.c
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/VeraCryptLib/DcsVeraCrypt.c')
-rw-r--r--Library/VeraCryptLib/DcsVeraCrypt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/VeraCryptLib/DcsVeraCrypt.c b/Library/VeraCryptLib/DcsVeraCrypt.c
index 9cf57ce..ba92931 100644
--- a/Library/VeraCryptLib/DcsVeraCrypt.c
+++ b/Library/VeraCryptLib/DcsVeraCrypt.c
@@ -37,8 +37,11 @@ BOOL ConfigRead(char *configKey, char *configValue, int maxValueSize)
{
char *xml;
- if (ConfigBuffer == NULL)
- FileLoad(NULL, L"\\EFI\\VeraCrypt\\DcsProp", &ConfigBuffer, &ConfigBufferSize);
+ if (ConfigBuffer == NULL) {
+ if (FileLoad(NULL, L"\\EFI\\VeraCrypt\\DcsProp", &ConfigBuffer, &ConfigBufferSize) != EFI_SUCCESS) {
+ return FALSE;
+ }
+ }
xml = ConfigBuffer;
if (xml != NULL)