mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: in "VeraCrypt Format.exe", erase the volume PIM value after the process is finished to avoid displaying it again if the user starts a new creation process right after
This commit is contained in:
@@ -381,6 +381,7 @@ static void WipePasswordsAndKeyfiles (void)
|
||||
burn (&szVerify[0], sizeof (szVerify));
|
||||
burn (&volumePassword, sizeof (volumePassword));
|
||||
burn (&szRawPassword[0], sizeof (szRawPassword));
|
||||
burn (&volumePin, sizeof (volumePin));
|
||||
|
||||
SetWindowText (hPasswordInputField, "");
|
||||
SetWindowText (hVerifyPasswordInputField, "");
|
||||
@@ -2694,6 +2695,7 @@ static void __cdecl volTransformThreadFunction (void *hwndDlgArg)
|
||||
// Clear the outer volume password
|
||||
memset(&szVerify[0], 0, sizeof (szVerify));
|
||||
memset(&szRawPassword[0], 0, sizeof (szRawPassword));
|
||||
memset(&volumePin, 0, sizeof (volumePin));
|
||||
|
||||
MessageBeep (MB_OK);
|
||||
}
|
||||
@@ -9469,6 +9471,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, char *lpszComm
|
||||
VirtualLock (&volumePassword, sizeof(volumePassword));
|
||||
VirtualLock (szVerify, sizeof(szVerify));
|
||||
VirtualLock (szRawPassword, sizeof(szRawPassword));
|
||||
VirtualLock (&volumePin, sizeof(volumePin));
|
||||
|
||||
VirtualLock (MasterKeyGUIView, sizeof(MasterKeyGUIView));
|
||||
VirtualLock (HeaderKeyGUIView, sizeof(HeaderKeyGUIView));
|
||||
|
||||
Reference in New Issue
Block a user