VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/ExpandVolume
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-03 17:34:52 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-11 11:12:45 (GMT)
commit335f17b72f567f1bdb9dbc84a1d42d2cf18f1245 (patch)
tree1f9f5ba97fce7448dcdaf1691d7787c75e643182 /src/ExpandVolume
parent735657a25478bb81ccbb7209c27679b93a2b98e4 (diff)
downloadVeraCrypt-335f17b72f567f1bdb9dbc84a1d42d2cf18f1245.zip
VeraCrypt-335f17b72f567f1bdb9dbc84a1d42d2cf18f1245.tar.gz
Windows: in case of In-Place encryption, encrypt random data instead of existing data when filling unused space like the other cases.
Diffstat (limited to 'src/ExpandVolume')
-rw-r--r--src/ExpandVolume/ExpandVolume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ExpandVolume/ExpandVolume.c b/src/ExpandVolume/ExpandVolume.c
index 2235af1..82c4207 100644
--- a/src/ExpandVolume/ExpandVolume.c
+++ b/src/ExpandVolume/ExpandVolume.c
@@ -837,7 +837,7 @@ static int ExpandVolume (HWND hwndDlg, wchar_t *lpszVolume, Password *pVolumePas
PCRYPTO_INFO dummyInfo = NULL;
LARGE_INTEGER hiddenOffset;
- nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, newDataAreaSize, !backupHeader, backupHeader, FALSE);
+ nStatus = WriteRandomDataToReservedHeaderAreas (hwndDlg, dev, cryptoInfo, newDataAreaSize, !backupHeader, backupHeader);
if (nStatus != ERR_SUCCESS)
goto error;