Windows : correct bug in construction of Format.exe path that prevented the new volume wizard to launch.

This commit is contained in:
Mounir IDRASSI 2014-08-25 08:38:42 +02:00
parent bb7ef68040
commit f158df394e

View File

@ -952,7 +952,7 @@ static void LaunchVolCreationWizard (HWND hwndDlg, const char *arg)
ZeroMemory (&si, sizeof (si)); ZeroMemory (&si, sizeof (si));
*tmp = 0; *tmp = 0;
StringCbCopyA (t, sizeof(t), "\\VeraCrypt Format.exe\""); StringCbCatA (t, sizeof(t), "\\VeraCrypt Format.exe\"");
if (!FileExists(t)) if (!FileExists(t))
Error ("VOL_CREATION_WIZARD_NOT_FOUND"); // Display a user-friendly error message and advise what to do Error ("VOL_CREATION_WIZARD_NOT_FOUND"); // Display a user-friendly error message and advise what to do