diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-11 12:52:06 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-11 17:28:20 +0200 |
commit | 5c9aff0c548eeec4e32e77b40569d9ca5a9f8c69 (patch) | |
tree | 425a8e183ce58a6db60573712b9cf805caf43bd4 /src/Common/BaseCom.cpp | |
parent | 5822ae2b1b824b92189ae238a02b2a958cac6396 (diff) | |
download | VeraCrypt-5c9aff0c548eeec4e32e77b40569d9ca5a9f8c69.tar.gz VeraCrypt-5c9aff0c548eeec4e32e77b40569d9ca5a9f8c69.zip |
Windows: Remove unused method ReadEfiConfig
Diffstat (limited to 'src/Common/BaseCom.cpp')
-rw-r--r-- | src/Common/BaseCom.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/Common/BaseCom.cpp b/src/Common/BaseCom.cpp index a73e472d..12af98a4 100644 --- a/src/Common/BaseCom.cpp +++ b/src/Common/BaseCom.cpp @@ -400,34 +400,6 @@ DWORD BaseCom::GetEfiBootDeviceNumber (BSTR* pSdn) return ERROR_SUCCESS; } -DWORD BaseCom::ReadEfiConfig (BSTR filename, BSTR* pContent, DWORD *pcbRead) -{ - if (!pContent || !(*pContent)) - return ERROR_INVALID_PARAMETER; - - try - { - DWORD maxSize = ((DWORD *) ((BYTE *) *pContent))[-1]; - BootEncryption bootEnc (NULL); - bootEnc.ReadEfiConfig (filename, (byte*) *pContent, maxSize, pcbRead); - } - catch (SystemException &) - { - return GetLastError(); - } - catch (Exception &e) - { - e.Show (NULL); - return ERROR_EXCEPTION_IN_SERVICE; - } - catch (...) - { - return ERROR_EXCEPTION_IN_SERVICE; - } - - return ERROR_SUCCESS; -} - DWORD BaseCom::WriteEfiBootSectorUserConfig (DWORD userConfig, BSTR customUserMessage, int pim, int hashAlg) { if (!customUserMessage) |