mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Windows: use the correct parent window when changing the password of the encrypted system partition.
This commit is contained in:
parent
f4c864e88e
commit
e18f3cf381
@ -2117,7 +2117,7 @@ namespace VeraCrypt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int BootEncryption::ChangePassword (Password *oldPassword, int old_pkcs5,Password *newPassword, int pkcs5, int wipePassCount)
|
int BootEncryption::ChangePassword (Password *oldPassword, int old_pkcs5,Password *newPassword, int pkcs5, int wipePassCount, HWND hwndDlg)
|
||||||
{
|
{
|
||||||
BootEncryptionStatus encStatus = GetStatus();
|
BootEncryptionStatus encStatus = GetStatus();
|
||||||
|
|
||||||
@ -2164,7 +2164,7 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
handleError (ParentWindow, status);
|
handleError (hwndDlg, status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2182,7 +2182,7 @@ namespace VeraCrypt
|
|||||||
SetRandomPoolEnrichedByUserStatus (FALSE);
|
SetRandomPoolEnrichedByUserStatus (FALSE);
|
||||||
|
|
||||||
NormalCursor();
|
NormalCursor();
|
||||||
UserEnrichRandomPool (ParentWindow);
|
UserEnrichRandomPool (hwndDlg);
|
||||||
WaitCursor();
|
WaitCursor();
|
||||||
|
|
||||||
/* The header will be re-encrypted wipePassCount times to prevent adversaries from using
|
/* The header will be re-encrypted wipePassCount times to prevent adversaries from using
|
||||||
@ -2209,7 +2209,7 @@ namespace VeraCrypt
|
|||||||
{
|
{
|
||||||
PCRYPTO_INFO tmpCryptoInfo = NULL;
|
PCRYPTO_INFO tmpCryptoInfo = NULL;
|
||||||
|
|
||||||
status = CreateVolumeHeaderInMemory (ParentWindow, !encStatus.HiddenSystem,
|
status = CreateVolumeHeaderInMemory (hwndDlg, !encStatus.HiddenSystem,
|
||||||
header,
|
header,
|
||||||
cryptoInfo->ea,
|
cryptoInfo->ea,
|
||||||
cryptoInfo->mode,
|
cryptoInfo->mode,
|
||||||
@ -2231,7 +2231,7 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
handleError (ParentWindow, status);
|
handleError (hwndDlg, status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2249,7 +2249,7 @@ namespace VeraCrypt
|
|||||||
}
|
}
|
||||||
catch (Exception &e)
|
catch (Exception &e)
|
||||||
{
|
{
|
||||||
e.Show (ParentWindow);
|
e.Show (hwndDlg);
|
||||||
result = ERR_OS_ERROR;
|
result = ERR_OS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ namespace VeraCrypt
|
|||||||
void AbortSetup ();
|
void AbortSetup ();
|
||||||
void AbortSetupWait ();
|
void AbortSetupWait ();
|
||||||
void CallDriver (DWORD ioctl, void *input = nullptr, DWORD inputSize = 0, void *output = nullptr, DWORD outputSize = 0);
|
void CallDriver (DWORD ioctl, void *input = nullptr, DWORD inputSize = 0, void *output = nullptr, DWORD outputSize = 0);
|
||||||
int ChangePassword (Password *oldPassword, int old_pkcs5, Password *newPassword, int pkcs5, int wipePassCount);
|
int ChangePassword (Password *oldPassword, int old_pkcs5, Password *newPassword, int pkcs5, int wipePassCount, HWND hwndDlg);
|
||||||
void CheckDecoyOSWipeResult ();
|
void CheckDecoyOSWipeResult ();
|
||||||
void CheckEncryptionSetupResult ();
|
void CheckEncryptionSetupResult ();
|
||||||
void CheckRequirements ();
|
void CheckRequirements ();
|
||||||
|
@ -1470,7 +1470,7 @@ void CALLBACK ChangePwdWaitThreadProc(void* pArg, HWND hwndDlg)
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
*pThreadParam->pnStatus = BootEncObj->ChangePassword (pThreadParam->oldPassword, pThreadParam->old_pkcs5, pThreadParam->newPassword, pThreadParam->pkcs5, pThreadParam->wipePassCount);
|
*pThreadParam->pnStatus = BootEncObj->ChangePassword (pThreadParam->oldPassword, pThreadParam->old_pkcs5, pThreadParam->newPassword, pThreadParam->pkcs5, pThreadParam->wipePassCount, hwndDlg);
|
||||||
}
|
}
|
||||||
catch (Exception &e)
|
catch (Exception &e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user