From 8fc08b1e468482301fa5c31fcba742e24e197afc Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 12 Jul 2015 19:46:30 +0200 Subject: Windows: Solve failure to create hidden volume when PIM used for outer volume. Correctly wipe password variable from memory. --- src/Format/Tcformat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 3e8fa7dd..bd83078f 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -2746,9 +2746,8 @@ static void __cdecl volTransformThreadFunction (void *hwndDlgArg) nHiddenVolHostSize = nVolumeSize; // Clear the outer volume password - memset(&szVerify[0], 0, sizeof (szVerify)); - memset(&szRawPassword[0], 0, sizeof (szRawPassword)); - memset(&volumePim, 0, sizeof (volumePim)); + burn(&szVerify[0], sizeof (szVerify)); + burn(&szRawPassword[0], sizeof (szRawPassword)); MessageBeep (MB_OK); } -- cgit v1.2.3