diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-07-13 10:14:52 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-07-13 10:14:52 +0200 |
commit | 1ee93df3b4adc891b83b05dd82bc6de851898f62 (patch) | |
tree | 00d4a721f6791c0b02cabc62ec9ca13ac4f5c057 /src/Main/TextUserInterface.cpp | |
parent | bb67a22ac4214db5f1a353bb16508eb347f32c8d (diff) | |
download | VeraCrypt-1ee93df3b4adc891b83b05dd82bc6de851898f62.tar.gz VeraCrypt-1ee93df3b4adc891b83b05dd82bc6de851898f62.zip |
Linux: fix linker type confusion that was causing crash.
The class AdminPasswordRequestHandler was defined in several places in the same namespace and the linker was picking up one definition for constructor and the other one when calling virtual method.
Now we use different named for different implementations.
Diffstat (limited to 'src/Main/TextUserInterface.cpp')
-rw-r--r-- | src/Main/TextUserInterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index 46559dfa..8494a45c 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -30,10 +30,10 @@ namespace VeraCrypt { - class AdminPasswordRequestHandler : public GetStringFunctor + class AdminPasswordTextRequestHandler : public GetStringFunctor { public: - AdminPasswordRequestHandler (TextUserInterface *userInterface) : UI (userInterface) { } + AdminPasswordTextRequestHandler (TextUserInterface *userInterface) : UI (userInterface) { } virtual void operator() (string &passwordStr) { UI->ShowString (_("Enter your user password or administrator password: ")); @@ -1116,7 +1116,7 @@ namespace VeraCrypt shared_ptr <GetStringFunctor> TextUserInterface::GetAdminPasswordRequestHandler () { - return shared_ptr <GetStringFunctor> (new AdminPasswordRequestHandler (this)); + return shared_ptr <GetStringFunctor> (new AdminPasswordTextRequestHandler (this)); } void TextUserInterface::ImportTokenKeyfiles () const |