Windows: in case of In-Place encryption, encrypt random data instead of existing data when filling unused space like the other cases.

This commit is contained in:
Mounir IDRASSI
2016-09-11 13:12:45 +02:00
parent 735657a254
commit 335f17b72f
6 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -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;