VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-14 17:43:31 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:21:30 +0100
commit0594532cf1d6bb5fc8886d1c99db4e3861185112 (patch)
tree28ac01b860f9d0c9871198109636f109c5a700ba /src
parentc220db01281564bf5b50575ee7e24b38e45f5050 (diff)
downloadVeraCrypt-0594532cf1d6bb5fc8886d1c99db4e3861185112.tar.gz
VeraCrypt-0594532cf1d6bb5fc8886d1c99db4e3861185112.zip
Mount.c : call burn directly in szFileName instead of (&szFileName). This was not an issue because the compiler returns the same address for both, but for the sake of clarity it had to be corrected.
Diffstat (limited to 'src')
-rw-r--r--src/Mount/Mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index c63d31eb..2c14010e 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -147,41 +147,41 @@ static void localcleanup (void)
{
// Wipe command line
char *c = GetCommandLineA ();
wchar_t *wc = GetCommandLineW ();
burn(c, strlen (c));
burn(wc, wcslen (wc) * sizeof (wchar_t));
/* Delete buffered bitmaps (if any) */
if (hbmLogoBitmapRescaled != NULL)
{
DeleteObject ((HGDIOBJ) hbmLogoBitmapRescaled);
hbmLogoBitmapRescaled = NULL;
}
/* These items should have already been cleared by the functions that used them, but we're going to
clear them for extra security. */
burn (&VolumePassword, sizeof (VolumePassword));
burn (&CmdVolumePassword, sizeof (CmdVolumePassword));
burn (&mountOptions, sizeof (mountOptions));
burn (&defaultMountOptions, sizeof (defaultMountOptions));
- burn (&szFileName, sizeof(szFileName));
+ burn (szFileName, sizeof(szFileName));
/* Cleanup common code resources */
cleanup ();
if (BootEncObj != NULL)
{
delete BootEncObj;
BootEncObj = NULL;
}
RandStop (TRUE);
}
void RefreshMainDlg (HWND hwndDlg)
{
int drive = (char) (HIWORD (GetSelectedLong (GetDlgItem (hwndDlg, IDC_DRIVELIST))));
MoveEditToCombo (GetDlgItem (hwndDlg, IDC_VOLUME), bHistory);
LoadDriveLetters (GetDlgItem (hwndDlg, IDC_DRIVELIST), drive);
EnableDisableButtons (hwndDlg);