mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-27 21:43:29 +01:00
Windows: Fix regression when creating multiple keyfiles with a fixed size
This commit is contained in:
parent
3b80c8416b
commit
0e49b7bc33
@ -7366,8 +7366,6 @@ BOOL CALLBACK KeyfileGeneratorDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LP
|
||||
SendMessage(hwndDlg, WM_NEXTDLGCTL, (WPARAM) GetDlgItem (hwndDlg, IDC_KEYFILES_SIZE), TRUE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
remainingBytes = keyfilesSize;
|
||||
}
|
||||
|
||||
if (!GetWindowText(GetDlgItem (hwndDlg, IDC_KEYFILES_BASE_NAME), szFileBaseName, TC_MAX_PATH))
|
||||
@ -7468,9 +7466,10 @@ BOOL CALLBACK KeyfileGeneratorDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LP
|
||||
keyfilesSize %= ((KEYFILE_MAX_READ_LEN - 64) + 1);
|
||||
keyfilesSize += 64;
|
||||
|
||||
remainingBytes = keyfilesSize;
|
||||
}
|
||||
|
||||
remainingBytes = keyfilesSize;
|
||||
|
||||
do {
|
||||
rndBytesLength = (int) min (remainingBytes, (unsigned long long) KEYFILE_MAX_READ_LEN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user