From ecb29e3b3f1a67800922a79c009e80a0eb45ef91 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 21 Mar 2019 20:58:50 +0100 Subject: Enhance Rescue Disk implementation of restoring VeraCrypt loader. --- Library/DcsCfgLib/GptEdit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/DcsCfgLib') diff --git a/Library/DcsCfgLib/GptEdit.c b/Library/DcsCfgLib/GptEdit.c index 5f5d0b0..0b74bb3 100644 --- a/Library/DcsCfgLib/GptEdit.c +++ b/Library/DcsCfgLib/GptEdit.c @@ -289,13 +289,13 @@ DeListSaveToFile() { UINTN pad; len = (UINTN)DeList->DE[i].Length; pad = (((len + 511) >> 9) << 9) - len; - res = FileWrite(file, DeData[i], &len, NULL); + res = FileWrite(file, DeData[i], len, NULL); if (EFI_ERROR(res)) { ERR_PRINT(L"Write: %r\n", res); goto error; } if (pad > 0) { - res = FileWrite(file, pad512buf, &pad, NULL); + res = FileWrite(file, pad512buf, pad, NULL); if (EFI_ERROR(res)) { ERR_PRINT(L"Write: %r\n", res); goto error; -- cgit v1.2.3