VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/BootEncryption.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-20 00:52:03 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-20 23:23:18 +0200
commit3021745f67164c2a19cafc0ed1eff7d35830f662 (patch)
treefec84eb925389e2ebf85af957240e6405215846e /src/Common/BootEncryption.h
parentfe26ed8a5d224b133c48e2846b851d585460ad30 (diff)
downloadVeraCrypt-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.h3
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
@@ -37,7 +37,7 @@ namespace VeraCrypt
{
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);} }
@@ -58,6 +58,7 @@ namespace VeraCrypt
bool IsDevice;
wstring Path;
DWORD LastError;
+ BYTE ReadBuffer[4096];
};