diff --git a/src/Main/Forms/KeyfileGeneratorDialog.cpp b/src/Main/Forms/KeyfileGeneratorDialog.cpp index 5a24a255..a24bd99a 100644 --- a/src/Main/Forms/KeyfileGeneratorDialog.cpp +++ b/src/Main/Forms/KeyfileGeneratorDialog.cpp @@ -132,7 +132,7 @@ namespace VeraCrypt } { - FilePath keyfilePath((const wchar_t*) keyfileName.GetFullPath()); + FilePath keyfilePath((const wchar_t*) keyfileName.GetFullPath().c_str()); File keyfile; keyfile.Open (keyfilePath, File::CreateWrite); keyfile.Write (keyfileBuffer);