diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-20 00:52:03 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-20 23:23:18 +0200 |
commit | 3021745f67164c2a19cafc0ed1eff7d35830f662 (patch) | |
tree | fec84eb925389e2ebf85af957240e6405215846e /src/Common/BootEncryption.h | |
parent | fe26ed8a5d224b133c48e2846b851d585460ad30 (diff) | |
download | VeraCrypt-3021745f67164c2a19cafc0ed1eff7d35830f662.tar.gz VeraCrypt-3021745f67164c2a19cafc0ed1eff7d35830f662.zip |
Windows: better workaround for cases where ERROR_INVALID_PARAMETER is returned during system encryption which is due to 4096-bytes alignment of disk.
Diffstat (limited to 'src/Common/BootEncryption.h')
-rw-r--r-- | src/Common/BootEncryption.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h index 0f8e993b..f63ec541 100644 --- a/src/Common/BootEncryption.h +++ b/src/Common/BootEncryption.h @@ -36,9 +36,9 @@ namespace VeraCrypt class File { public: File () : Elevated (false), FileOpen (false), ReadOnly (false), FilePointerPosition(0), Handle(INVALID_HANDLE_VALUE), IsDevice(false), LastError(0) { } - File (wstring path,bool readOnly = false, bool create = false, bool useNormalAttributes = false); + File (wstring path,bool readOnly = false, bool create = false); virtual ~File () { Close(); } void CheckOpened (const char* srcPos) { if (!FileOpen) { SetLastError (LastError); throw SystemException (srcPos);} } void Close (); @@ -57,8 +57,9 @@ namespace VeraCrypt HANDLE Handle; bool IsDevice; wstring Path; DWORD LastError; + BYTE ReadBuffer[4096]; }; class Device : public File |